Skip to content

Commit e250b3f

Browse files
committed
[NDK][KMTESTS] Move the LOGICAL type definition to NDK
The LOGICAL (32-bit boolean) type is already defined for kernel-mode in the XDK/DDK ntdef.h header. Add the type in the NDK for usage in user-mode NT code also. The definition present in kmt_platform.h can now be removed, since it can now use the one from the NDK.
1 parent 1864042 commit e250b3f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/rostests/kmtests/include/kmt_platform.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#define ok_irql(i)
5252
#define KIRQL int
5353
typedef const UCHAR CUCHAR, *PCUCHAR;
54-
typedef ULONG LOGICAL, *PLOGICAL;
5554

5655
#undef KeRaiseIrql
5756
#define KeRaiseIrql(new, old) *(old) = 123

sdk/include/ndk/umtypes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ typedef LONG KPRIORITY;
132132
//
133133
// Basic NT Types
134134
//
135+
typedef ULONG LOGICAL, *PLOGICAL;
136+
135137
#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H) && !defined(_NTSECAPI_)
136138

137139
#if !defined(__BCRYPT_H__) && !defined(__WINE_BCRYPT_H)

0 commit comments

Comments
 (0)