Changeset 106494 in vbox for trunk/include
- Timestamp:
- Oct 19, 2024 3:06:34 AM (7 months ago)
- svn:sync-xref-src-repo-rev:
- 165326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/nt/nt.h
r106420 r106494 324 324 * @{ */ 325 325 /** Indicates that we're targeting native NT in the current source. */ 326 #define RTNT_USE_NATIVE_NT 1326 #define RTNT_USE_NATIVE_NT 1 327 327 /** Initializes a IO_STATUS_BLOCK. */ 328 #define RTNT_IO_STATUS_BLOCK_INITIALIZER { STATUS_FAILED_DRIVER_ENTRY, ~(uintptr_t)42 }328 #define RTNT_IO_STATUS_BLOCK_INITIALIZER { { STATUS_FAILED_DRIVER_ENTRY }, ~(uintptr_t)42 } 329 329 /** Reinitializes a IO_STATUS_BLOCK. */ 330 330 #define RTNT_IO_STATUS_BLOCK_REINIT(a_pIos) \ 331 331 do { (a_pIos)->Status = STATUS_FAILED_DRIVER_ENTRY; (a_pIos)->Information = ~(uintptr_t)42; } while (0) 332 332 /** Similar to INVALID_HANDLE_VALUE in the Windows environment. */ 333 #define RTNT_INVALID_HANDLE_VALUE ( (HANDLE)~(uintptr_t)0 )333 #define RTNT_INVALID_HANDLE_VALUE ( (HANDLE)~(uintptr_t)0 ) 334 334 /** Constant UNICODE_STRING initializer. */ 335 #define RTNT_CONSTANT_UNISTR(a_String) { sizeof(a_String) - sizeof(WCHAR), sizeof(a_String), (WCHAR *)a_String }335 #define RTNT_CONSTANT_UNISTR(a_String) { sizeof(a_String) - sizeof(WCHAR), sizeof(a_String), (WCHAR *)a_String } 336 336 /** Null UNICODE_STRING initializer. */ 337 #define RTNT_NULL_UNISTR() { 0, 0, NULL }337 #define RTNT_NULL_UNISTR() { 0, 0, NULL } 338 338 339 339 /** Declaration wrapper for NT apis.
Note:
See TracChangeset
for help on using the changeset viewer.