Skip to content

Commit

Permalink
Fix for Zw*PrivateNamespace APIs minimum versions (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mq1n authored Sep 20, 2022
1 parent ae6c094 commit d6135b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ntzwapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ ZwCreatePort(
_In_opt_ ULONG MaxPoolUsage
);

#if (PHNT_VERSION >= PHNT_VISTA)
NTSYSCALLAPI
NTSTATUS
NTAPI
Expand All @@ -1093,6 +1094,7 @@ ZwCreatePrivateNamespace(
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
_In_ POBJECT_BOUNDARY_DESCRIPTOR BoundaryDescriptor
);
#endif

NTSYSCALLAPI
NTSTATUS
Expand Down Expand Up @@ -1495,12 +1497,14 @@ ZwDeleteObjectAuditAlarm(
_In_ BOOLEAN GenerateOnClose
);

#if (PHNT_VERSION >= PHNT_VISTA)
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwDeletePrivateNamespace(
_In_ HANDLE NamespaceHandle
);
#endif

NTSYSCALLAPI
NTSTATUS
Expand Down Expand Up @@ -2480,6 +2484,7 @@ ZwOpenPartition(
_In_ POBJECT_ATTRIBUTES ObjectAttributes
);

#if (PHNT_VERSION >= PHNT_VISTA)
NTSYSCALLAPI
NTSTATUS
NTAPI
Expand All @@ -2489,6 +2494,7 @@ ZwOpenPrivateNamespace(
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
_In_ POBJECT_BOUNDARY_DESCRIPTOR BoundaryDescriptor
);
#endif

NTSYSCALLAPI
NTSTATUS
Expand Down

0 comments on commit d6135b7

Please sign in to comment.