std: add NtDeviceIoControlFile definition for windows

master
daurnimator 2019-11-14 15:33:47 +11:00
parent 6469900e79
commit 3b8afe31a0
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ pub extern "NtDll" stdcallcc fn NtCreateFile(
EaBuffer: ?*c_void,
EaLength: ULONG,
) NTSTATUS;
pub extern "NtDll" stdcallcc fn NtDeviceIoControlFile(
FileHandle: HANDLE,
Event: ?HANDLE,
ApcRoutine: ?*IO_APC_ROUTINE,
ApcContext: usize,
IoStatusBlock: *IO_STATUS_BLOCK,
IoControlCode: ULONG,
InputBuffer: ?*const c_void,
InputBufferLength: ULONG,
OutputBuffer: ?PVOID,
OutputBufferLength: ULONG,
) NTSTATUS;
pub extern "NtDll" stdcallcc fn NtClose(Handle: HANDLE) NTSTATUS;
pub extern "NtDll" stdcallcc fn RtlDosPathNameToNtPathName_U(
DosPathName: [*]const u16,