[NDK][NTOS:EX] Add/fix SAL annotations for Nt/ZwSetSystemInformation + last parameter type. (#4064)

This commit is contained in:
Hermès Bélusca-Maïto 2021-10-24 17:49:56 +02:00
parent 7692a620e7
commit d484a68ccb
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 9 additions and 7 deletions

View file

@ -2989,12 +2989,13 @@ NtQuerySystemInformation(
return FStatus; return FStatus;
} }
__kernel_entry
NTSTATUS NTSTATUS
NTAPI NTAPI
NtSetSystemInformation (IN SYSTEM_INFORMATION_CLASS SystemInformationClass, NtSetSystemInformation(
IN PVOID SystemInformation, _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
IN ULONG SystemInformationLength) _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation,
_In_ ULONG SystemInformationLength)
{ {
NTSTATUS Status = STATUS_INVALID_INFO_CLASS; NTSTATUS Status = STATUS_INVALID_INFO_CLASS;
KPROCESSOR_MODE PreviousMode; KPROCESSOR_MODE PreviousMode;

View file

@ -555,12 +555,13 @@ NtSetSystemEnvironmentValueEx(
_Inout_ PULONG Attributes _Inout_ PULONG Attributes
); );
__kernel_entry
NTSYSCALLAPI NTSYSCALLAPI
NTSTATUS NTSTATUS
NTAPI NTAPI
NtSetSystemInformation( NtSetSystemInformation(
_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
_In_ PVOID SystemInformation, _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation,
_In_ ULONG SystemInformationLength _In_ ULONG SystemInformationLength
); );
@ -1000,8 +1001,8 @@ NTSTATUS
NTAPI NTAPI
ZwSetSystemInformation( ZwSetSystemInformation(
_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
_In_ PVOID SystemInformation, _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation,
_In_ SIZE_T SystemInformationLength _In_ ULONG SystemInformationLength
); );
#ifdef NTOS_MODE_USER #ifdef NTOS_MODE_USER