[NTOS][NTDLL][NDK] Nt/ZwCreatePagingFile: Fix parameter names + use SAL; fix NTDLL spec file.

This commit is contained in:
Hermès Bélusca-Maïto 2022-11-01 22:07:36 +01:00
parent ab5fdac922
commit 4ac263c93a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 13 additions and 11 deletions

View file

@ -277,7 +277,7 @@
@ stdcall NtCreateMailslotFile(long long long long long long long long) @ stdcall NtCreateMailslotFile(long long long long long long long long)
@ stdcall NtCreateMutant(ptr long ptr long) @ stdcall NtCreateMutant(ptr long ptr long)
@ stdcall NtCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr) @ stdcall NtCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr)
@ stdcall NtCreatePagingFile(long long long long) @ stdcall NtCreatePagingFile(ptr ptr ptr long)
@ stdcall NtCreatePort(ptr ptr long long ptr) @ stdcall NtCreatePort(ptr ptr long long ptr)
@ stub -version=0x600+ NtCreatePrivateNamespace @ stub -version=0x600+ NtCreatePrivateNamespace
@ stdcall NtCreateProcess(ptr long ptr ptr long ptr ptr ptr) @ stdcall NtCreateProcess(ptr long ptr ptr long ptr ptr ptr)
@ -1438,7 +1438,7 @@
@ stdcall ZwCreateMailslotFile(long long long long long long long long) @ stdcall ZwCreateMailslotFile(long long long long long long long long)
@ stdcall ZwCreateMutant(ptr long ptr long) @ stdcall ZwCreateMutant(ptr long ptr long)
@ stdcall ZwCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr) @ stdcall ZwCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long long ptr)
@ stdcall ZwCreatePagingFile(long long long long) @ stdcall ZwCreatePagingFile(ptr ptr ptr long)
@ stdcall ZwCreatePort(ptr ptr long long long) @ stdcall ZwCreatePort(ptr ptr long long long)
@ stdcall ZwCreateProcess(ptr long ptr ptr long ptr ptr ptr) @ stdcall ZwCreateProcess(ptr long ptr ptr long ptr ptr ptr)
@ stdcall ZwCreateProcessEx(ptr long ptr ptr long ptr ptr ptr long) @ stdcall ZwCreateProcessEx(ptr long ptr ptr long ptr ptr ptr long)

View file

@ -344,11 +344,13 @@ MmAllocSwapPage(VOID)
return(0); return(0);
} }
NTSTATUS NTAPI NTSTATUS
NtCreatePagingFile(IN PUNICODE_STRING FileName, NTAPI
IN PLARGE_INTEGER MinimumSize, NtCreatePagingFile(
IN PLARGE_INTEGER MaximumSize, _In_ PUNICODE_STRING FileName,
IN ULONG Reserved) _In_ PLARGE_INTEGER MinimumSize,
_In_ PLARGE_INTEGER MaximumSize,
_In_ ULONG Reserved)
{ {
NTSTATUS Status; NTSTATUS Status;
OBJECT_ATTRIBUTES ObjectAttributes; OBJECT_ATTRIBUTES ObjectAttributes;

View file

@ -106,8 +106,8 @@ NTSTATUS
NTAPI NTAPI
NtCreatePagingFile( NtCreatePagingFile(
_In_ PUNICODE_STRING FileName, _In_ PUNICODE_STRING FileName,
_In_ PLARGE_INTEGER InitialSize, _In_ PLARGE_INTEGER MinimumSize,
_In_ PLARGE_INTEGER MaxiumSize, _In_ PLARGE_INTEGER MaximumSize,
_In_ ULONG Reserved _In_ ULONG Reserved
); );
@ -346,8 +346,8 @@ NTSTATUS
NTAPI NTAPI
ZwCreatePagingFile( ZwCreatePagingFile(
_In_ PUNICODE_STRING FileName, _In_ PUNICODE_STRING FileName,
_In_ PLARGE_INTEGER InitialSize, _In_ PLARGE_INTEGER MinimumSize,
_In_ PLARGE_INTEGER MaxiumSize, _In_ PLARGE_INTEGER MaximumSize,
_In_ ULONG Reserved _In_ ULONG Reserved
); );