pub extern "ntdll" fn NtSetInformationFile(
FileHandle: HANDLE,
IoStatusBlock: *IO_STATUS_BLOCK,
/// This can't be const as providing read-only memory could result in ACCESS_VIOLATION
/// in certain scenarios. This has been seen when using FILE_DISPOSITION_INFORMATION_EX
/// and targeting x86-windows.
FileInformation: *anyopaque,
Length: ULONG,
FileInformationClass: FILE.INFORMATION_CLASS,
) callconv(.winapi) NTSTATUS FileHandle: HANDLEIoStatusBlock: *IO_STATUS_BLOCKFileInformation: *anyopaqueThis can't be const as providing read-only memory could result in ACCESS_VIOLATION in certain scenarios. This has been seen when using FILE_DISPOSITION_INFORMATION_EX and targeting x86-windows.
Length: ULONGFileInformationClass: FILE.INFORMATION_CLASS211
212
213
214
215
216
217
218
219
220pub extern "ntdll" fn NtSetInformationFile(
FileHandle: HANDLE,
IoStatusBlock: *IO_STATUS_BLOCK,
/// This can't be const as providing read-only memory could result in ACCESS_VIOLATION
/// in certain scenarios. This has been seen when using FILE_DISPOSITION_INFORMATION_EX
/// and targeting x86-windows.
FileInformation: *anyopaque,
Length: ULONG,
FileInformationClass: FILE.INFORMATION_CLASS,
) callconv(.winapi) NTSTATUS