std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union

This commit is contained in:
daurnimator 2019-11-19 16:58:48 +11:00
parent 1537d4701e
commit d99f0a2b8f
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A

View File

@ -236,7 +236,11 @@ pub const FILE_NAME_INFORMATION = extern struct {
};
pub const IO_STATUS_BLOCK = extern struct {
Status: usize,
// "DUMMYUNIONNAME" expands to "u"
u: extern union {
Status: NTSTATUS,
Pointer: ?*c_void,
},
Information: ULONG_PTR,
};