Difference between revisions of "Unit GlobalConst"
From Ultibo.org
Line 499: | Line 499: | ||
|- | |- | ||
| <code>TLS_OUT_OF_INDEXES = DWORD($FFFFFFFF);</code> | | <code>TLS_OUT_OF_INDEXES = DWORD($FFFFFFFF);</code> | ||
+ | | style="width: 50%;| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Wait constants''' <code> WAIT_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>WAIT_OBJECT_0 = ERROR_SUCCESS + 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>WAIT_ABANDONED = $00000080 + 0;</code> | ||
+ | | STATUS_ABANDONED_WAIT_0 | ||
+ | |- | ||
+ | | <code>WAIT_ABANDONED_0 = $00000080 + 0;</code> | ||
+ | | STATUS_ABANDONED_WAIT_0 | ||
+ | |- | ||
+ | | <code>WAIT_TIMEOUT = ERROR_WAIT_TIMEOUT;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>WAIT_FAILED = DWORD($FFFFFFFF);</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>WAIT_IO_COMPLETION = $000000C0;</code> | ||
+ | | STATUS_USER_APC | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>MAXIMUM_WAIT_OBJECTS = 64;</code> | ||
+ | | Maximum number of wait objects | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Thread state constants''' <code> STILL_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>STILL_ACTIVE = ERROR_NO_MORE_ITEMS;</code> | ||
+ | | style="width: 50%;| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''TimeZone constants''' <code> TIME_ZONE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>TIME_ZONE_ID_INVALID = DWORD($FFFFFFFF);</code> | ||
| style="width: 50%;| | | style="width: 50%;| | ||
|- | |- |
Revision as of 07:13, 24 September 2016
Return to Unit Reference
Description
To be documented
Constants
Universal error constants
ERROR_*
ERROR_SUCCESS = 0;
|
Success |
NO_ERROR = 0;
|
Success |
ERROR_INVALID_FUNCTION = 1;
|
Invalid function |
ERROR_FILE_NOT_FOUND = 2;
|
The file cannot be found |
ERROR_PATH_NOT_FOUND = 3;
|
The path cannot be found |
ERROR_TOO_MANY_OPEN_FILES = 4;
|
Too many open files |
ERROR_ACCESS_DENIED = 5;
|
Access is denied |
ERROR_INVALID_HANDLE = 6;
|
Invalid handle} |
ERROR_NOT_ENOUGH_MEMORY = DWORD(8);
|
Not enough storage is available to process this command |
ERROR_INVALID_ACCESS = 12;
|
Invalid access |
ERROR_INVALID_DATA = 13;
|
The data is invalid |
ERROR_OUTOFMEMORY = 14;
|
Not enough memory is available |
ERROR_INVALID_DRIVE = 15;
|
Cannot find the drive specified |
ERROR_CURRENT_DIRECTORY = 16;
|
Current directory cannot be removed |
ERROR_NOT_SAME_DEVICE = 17;
|
Cannot move the file to a different disk drive |
ERROR_NO_MORE_FILES = 18;
|
There are no more files |
ERROR_WRITE_PROTECT = 19;
|
Media is write protected |
ERROR_BAD_UNIT = 20;
|
Cannot find the device specified |
ERROR_NOT_READY = 21;
|
The device is not ready |
ERROR_BAD_COMMAND = 22;
|
The device does not recognise the command |
ERROR_WRITE_FAULT = 29;
|
The device cannot be written to |
ERROR_READ_FAULT = 30;
|
The device cannot be read from |
ERROR_GEN_FAILURE = 31;
|
The device has failed |
ERROR_NOT_SUPPORTED = 50;
|
The request is not supported |
ERROR_DEV_NOT_EXIST = 55;
|
The device does not exist |
ERROR_BAD_DEV_TYPE = 66;
|
Invalid device type |
ERROR_ALREADY_ASSIGNED = 85;
|
The device name is already in use |
ERROR_INVALID_PASSWORD = 86;
|
Invalid pasword |
ERROR_INVALID_PARAMETER = 87;
|
Invalid parameter |
ERROR_SEM_IS_SET = 102;
|
The semaphore is in use and cannot be closed |
ERROR_OPEN_FAILED = 110;
|
The file or device could not be opened |
ERROR_CALL_NOT_IMPLEMENTED = 120;
|
The function is not currently implemented |
ERROR_INSUFFICIENT_BUFFER = 122;
|
The buffer passed is too small for the requested data |
ERROR_WAIT_NO_CHILDREN = 128;
|
There are no child processes to wait for |
ERROR_NOT_LOCKED = 158;
|
The entry is not locked |
ERROR_LOCK_FAILED = 167;
|
The lock operation failed |
ERROR_ALREADY_EXISTS = 183;
|
The file or object already exists |
ERROR_ENVVAR_NOT_FOUND = 203;
|
The environment variable could not be found |
ERROR_LOCKED = 212;
|
The entry is already locked |
ERROR_MORE_DATA = 234;
|
More data is available than the provided buffer |
ERROR_WAIT_TIMEOUT = 258;
|
The operation timed out |
ERROR_NO_MORE_ITEMS = 259;
|
No more items available |
ERROR_NOT_OWNER = 288;
|
The current thread is not the owner |
ERROR_OPERATION_ABORTED = DWORD(995);
|
The I/O operation has been aborted because of either a thread exit or an application request |
ERROR_IO_INCOMPLETE = DWORD(996);
|
Overlapped I/O event is not in a signaled state |
ERROR_IO_PENDING = DWORD(997);
|
Overlapped I/O operation is in progress |
ERROR_CAN_NOT_COMPLETE = 1003;
|
Cannot complete the function |
ERROR_NOT_FOUND = 1168;
|
The entry or device was not found |
ERROR_INVALID_ACL = DWORD(1336);
|
The access control list (ACL) structure is invalid |
ERROR_INVALID_SID = DWORD(1337);
|
The security ID structure is invalid |
ERROR_INVALID_SECURITY_DESCR = DWORD(1338);
|
The security descriptor structure is invalid |
ERROR_TIMEOUT = 1460;
|
The operation returned because the timeout expired |
ERROR_FUNCTION_FAILED = 1627;
|
The function call failed |
Errors below here have no compatibility equivalent | |
ERROR_NOT_VALID = 1000001;
|
The entry or device is not valid |
ERROR_NOT_ASSIGNED = 1000002;
|
The device is not assigned |
ERROR_IN_USE = 1000003;
|
The device is in use |
ERROR_OPERATION_FAILED = 1000004;
|
The operation failed |
ERROR_NOT_OPEN = 1000005;
|
The file or device is not open |
ERROR_ALREADY_OPEN = 1000006;
|
The file or device is already open |
ERROR_WAIT_ABANDONED = 1000007;
|
The operation was abandoned |
ERROR_IN_PROGRESS = 1000008;
|
An operation is already in progress |
ERROR_RUNTIME_ERROR = 1000009;
|
A run time occurred |
ERROR_EXCEPTION = 1000010;
|
An exception occurred |
ERROR_NOT_PROCESSED = 1000011;
|
The entry has not been processed |
ERROR_NOT_COMPLETED = 1000012;
|
The entry or operation has not completed |
ERROR_NOT_COMPATIBLE = 1000013;
|
The entry is not compatible for the operation |
ERROR_CANCELLED = 1000014;
|
The entry or operation has been cancelled |
ERROR_UNKNOWN = $FFFFFFFF;
|
Universal value constants
INVALID_*
INVALID_HANDLE_VALUE = THandle(-1);
|
DWORD(-1); |
INVALID_FILE_SIZE = DWORD($FFFFFFFF);
|
|
INVALID_SET_FILE_POINTER = DWORD(-1);
|
|
INVALID_FILE_ATTRIBUTES = DWORD(-1);
|
File position constants
FILE_*
FILE_BEGIN = 0;
|
|
FILE_CURRENT = 1;
|
|
FILE_END = 2;
|
File open/create constants
CREATE_*
CREATE_NEW = 1;
|
|
CREATE_ALWAYS = 2;
|
|
OPEN_EXISTING = 3;
|
|
OPEN_ALWAYS = 4;
|
|
TRUNCATE_EXISTING = 5;
|
File creation flag constants
FILE_FLAG_*
FILE_FLAG_WRITE_THROUGH = DWORD($80000000);
|
|
FILE_FLAG_OVERLAPPED = $40000000;
|
|
FILE_FLAG_NO_BUFFERING = $20000000;
|
|
FILE_FLAG_RANDOM_ACCESS = $10000000;
|
|
FILE_FLAG_SEQUENTIAL_SCAN = $08000000;
|
|
FILE_FLAG_DELETE_ON_CLOSE = $04000000;
|
|
FILE_FLAG_BACKUP_SEMANTICS = $02000000;
|
|
FILE_FLAG_POSIX_SEMANTICS = $01000000;
|
|
FILE_FLAG_OPEN_REPARSE_POINT = $00200000;
|
|
FILE_FLAG_OPEN_NO_RECALL = $00100000;
|
|
FILE_FLAG_FIRST_PIPE_INSTANCE = $00080000;
|
File attribute constants
FILE_ATTRIBUTE_*
FILE_ATTRIBUTE_READONLY = $00000001;
|
|
FILE_ATTRIBUTE_HIDDEN = $00000002;
|
|
FILE_ATTRIBUTE_SYSTEM = $00000004;
|
|
FILE_ATTRIBUTE_DIRECTORY = $00000010;
|
|
FILE_ATTRIBUTE_ARCHIVE = $00000020;
|
|
FILE_ATTRIBUTE_DEVICE = $00000040;
|
|
FILE_ATTRIBUTE_NORMAL = $00000080;
|
|
FILE_ATTRIBUTE_TEMPORARY = $00000100;
|
|
FILE_ATTRIBUTE_SPARSE_FILE = $00000200;
|
|
FILE_ATTRIBUTE_REPARSE_POINT = $00000400;
|
|
FILE_ATTRIBUTE_COMPRESSED = $00000800;
|
|
FILE_ATTRIBUTE_OFFLINE = $00001000;
|
|
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = $00002000;
|
|
FILE_ATTRIBUTE_ENCRYPTED = $00004000;
|
Filesystem attribute constants
FS_*
FS_CASE_SENSITIVE_SEARCH = $00000001;
|
|
FS_CASE_PRESERVED_NAMES = $00000002;
|
|
FS_UNICODE_ON_DISK = $00000004;
|
|
FS_PERSISTENT_ACLS = $00000008;
|
|
FS_FILE_COMPRESSION = $00000010;
|
|
FS_VOLUME_QUOTAS = $00000020;
|
|
FS_SUPPORTS_SPARSE_FILES = $00000040;
|
|
FS_SUPPORTS_REPARSE_POINTS = $00000080;
|
|
FS_SUPPORTS_REMOTE_STORAGE = $00000100;
|
|
FS_VOLUME_IS_COMPRESSED = $00008000;
|
|
FS_SUPPORTS_OBJECT_IDS = $00010000;
|
|
FS_SUPPORTS_ENCRYPTION = $00020000;
|
|
FS_NAMED_STREAMS = $00040000;
|
|
FS_READ_ONLY_VOLUME = $00080000;
|
Timeout constants
INFINITE =*
INFINITE = LongWord(-1);
|
TLS constants
TLS_*
TLS_OUT_OF_INDEXES = DWORD($FFFFFFFF);
|
Wait constants
WAIT_*
WAIT_OBJECT_0 = ERROR_SUCCESS + 0;
|
|
WAIT_ABANDONED = $00000080 + 0;
|
STATUS_ABANDONED_WAIT_0 |
WAIT_ABANDONED_0 = $00000080 + 0;
|
STATUS_ABANDONED_WAIT_0 |
WAIT_TIMEOUT = ERROR_WAIT_TIMEOUT;
|
|
WAIT_FAILED = DWORD($FFFFFFFF);
|
|
WAIT_IO_COMPLETION = $000000C0;
|
STATUS_USER_APC |
MAXIMUM_WAIT_OBJECTS = 64;
|
Maximum number of wait objects |
Thread state constants
STILL_*
STILL_ACTIVE = ERROR_NO_MORE_ITEMS;
|
TimeZone constants
TIME_ZONE_*
TIME_ZONE_ID_INVALID = DWORD($FFFFFFFF);
|
To be documented
Type definitions
None defined
Public variables
None defined
Function declarations
None defined
Return to Unit Reference