-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreturn_codes.h
70 lines (50 loc) · 1.38 KB
/
return_codes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
#ifndef ERROR_SUCCESS
#define ERROR_SUCCESS 0
// The operation completed successfully
#endif
#ifndef ERROR_NOT_FOUND
#define ERROR_NOT_FOUND 1
#ifndef ERROR_FILE_NOT_FOUND
#define ERROR_FILE_NOT_FOUND ERROR_NOT_FOUND
// The system cannot find the file specified.
#endif
#ifndef ERROR_PATH_NOT_FOUND
#define ERROR_PATH_NOT_FOUND ERROR_NOT_FOUND
// The system cannot find the path specified.
#endif
#ifndef ERROR_FILE_EXISTS
#define ERROR_FILE_EXISTS ERROR_NOT_FOUND
// The file exists
#endif
#ifndef ERROR_ALREADY_EXISTS
#define ERROR_ALREADY_EXISTS ERROR_NOT_FOUND
// Cannot create a file when that file already exists
#endif
#endif
#ifndef ERROR_MEMORY
#define ERROR_MEMORY 2
#ifndef ERROR_NOT_ENOUGH_MEMORY
#define ERROR_NOT_ENOUGH_MEMORY ERROR_MEMORY
// Not enough memory resources are available to process this command
#endif
#ifndef ERROR_OUTOFMEMORY
#define ERROR_OUTOFMEMORY ERROR_MEMORY
// Not enough storage is available to complete this operation
#endif
#endif
#ifndef ERROR_INVALID_DATA
#define ERROR_INVALID_DATA 3
// The data is invalid
#endif
#ifndef ERROR_INVALID_PARAMETER
#define ERROR_INVALID_PARAMETER 4
// The parameter is incorrect
#endif
#ifndef ERROR_CALL_NOT_IMPLEMENTED
#define ERROR_CALL_NOT_IMPLEMENTED 5
// This function is not supported on this system
#endif
#ifndef ERROR_UNKNOWN
#define ERROR_UNKNOWN -1
#endif