X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=include%2Ferrors.h;fp=include%2Ferrors.h;h=914746bbe435878152e1532b660e81b0d511121b;hp=30a219bcaf33fbe7fdeaeec3e2abb136fc9c1ca4;hb=a3df8bf1429570e0bd6c6428f6ed80073578cf4b;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/include/errors.h b/include/errors.h index 30a219b..914746b 100644 --- a/include/errors.h +++ b/include/errors.h @@ -31,19 +31,25 @@ #ifndef _GNU_H_WINDOWS32_ERROR #define _GNU_H_WINDOWS32_ERROR +#ifdef __USE_W32API + +#include_next + +#else /* !__USE_W32API */ + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -// -// Return Code macros -// +/* + * Return Code macros + */ #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0) #define FAILED(Status) ((HRESULT)(Status)<0) -// -// Success Codes -// +/* + * Success Codes + */ #define S_OK 0x00000000L #define S_FALSE 0x00000001L @@ -228,6 +234,17 @@ extern "C" { #define ERROR_LOCKED 212L #define ERROR_TOO_MANY_MODULES 214L #define ERROR_NESTING_NOT_ALLOWED 215L +#define ERROR_CANNOT_SHRINK 216L +#define ERROR_ZOMBIE_PROCESS 217L +#define ERROR_STACK_IN_HIGH_MEMORY 218L +#define ERROR_INVALID_EXITROUTINE_RING 219L +#define ERROR_GETBUF_FAILED 220L +#define ERROR_FLUSHBUF_FAILED 221L +#define ERROR_TRANSFER_TOO_LONG 222L +#define ERROR_FORCENOSWAP_FAILED 223L +#define ERROR_SMG_NO_TARGET_WINDOW 224L +#define ERROR_NO_CHILDREN 228L +#define ERROR_INVALID_SCREEN_GROUP 229L #define ERROR_BAD_PIPE 230L #define ERROR_PIPE_BUSY 231L #define ERROR_NO_DATA 232L @@ -1165,4 +1182,6 @@ extern "C" { } #endif /* __cplusplus */ +#endif /* !__USE_W32API */ + #endif /* _GNU_H_WINDOWS32_ERROR */