Correct definition of IO_STATUS_BLOCK
This commit is contained in:
parent
949b98cab8
commit
66faaa817a
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user