Correct definition of IO_STATUS_BLOCK

This commit is contained in:
Chris Denton 2022-03-28 08:42:59 +01:00
parent 949b98cab8
commit 66faaa817a
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE

View File

@ -316,15 +316,21 @@ impl Default for OBJECT_ATTRIBUTES {
} }
} }
#[repr(C)] #[repr(C)]
pub struct IO_STATUS_BLOCK { union IO_STATUS_BLOCK_union {
pub Pointer: *mut c_void, Status: NTSTATUS,
pub Information: usize, Pointer: *mut c_void,
} }
impl Default for IO_STATUS_BLOCK { impl Default for IO_STATUS_BLOCK_union {
fn default() -> Self { fn default() -> Self {
Self { Pointer: ptr::null_mut(), Information: 0 } Self { Pointer: ptr::null_mut() }
} }
} }
#[repr(C)]
#[derive(Default)]
pub struct IO_STATUS_BLOCK {
u: IO_STATUS_BLOCK_union,
pub Information: usize,
}
pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "system" fn( pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "system" fn(
dwErrorCode: DWORD, dwErrorCode: DWORD,