Skip to content

Commit

Permalink
[NT:EX] Fix some definitions guarded by incorrect macros for kernel mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RatinCN committed Sep 21, 2024
1 parent 36f8e42 commit 402648d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Include/KNSoft/NDK/NT/Ex/SysInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ typedef struct _SYSTEM_SESSION_PROCESS_INFORMATION
PVOID Buffer;
} SYSTEM_SESSION_PROCESS_INFORMATION, *PSYSTEM_SESSION_PROCESS_INFORMATION;

#if (NTDDI_MODE != NTDDI_MODE_KERNEL)
#if !defined(_KERNEL_MODE)

typedef struct _IMAGE_EXPORT_DIRECTORY *PIMAGE_EXPORT_DIRECTORY; // from ntrtl.h

Expand Down Expand Up @@ -1048,7 +1048,7 @@ typedef struct _SYSTEM_WATCHDOG_TIMER_INFORMATION
ULONG DataValue;
} SYSTEM_WATCHDOG_TIMER_INFORMATION, *PSYSTEM_WATCHDOG_TIMER_INFORMATION;

#if (NTDDI_MODE != NTDDI_MODE_KERNEL)
#if !defined(_KERNEL_MODE)
// private
typedef enum _SYSTEM_FIRMWARE_TABLE_ACTION
{
Expand All @@ -1068,7 +1068,7 @@ typedef struct _SYSTEM_FIRMWARE_TABLE_INFORMATION
} SYSTEM_FIRMWARE_TABLE_INFORMATION, *PSYSTEM_FIRMWARE_TABLE_INFORMATION;
#endif

#if (NTDDI_MODE != NTDDI_MODE_KERNEL)
#if !defined(_KERNEL_MODE)
// private
typedef NTSTATUS(__cdecl* PFNFTH)(
_Inout_ PSYSTEM_FIRMWARE_TABLE_INFORMATION SystemFirmwareTableInfo
Expand Down

0 comments on commit 402648d

Please sign in to comment.