Remove LPSECURITY_ATTRIBUTES

This commit is contained in:
Chris Denton 2024-07-14 07:12:32 +00:00
parent 1b7cf3a3f2
commit 351f1f36f6
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,6 @@ pub type DWORD = c_ulong;
pub type WCHAR = u16; pub type WCHAR = u16;
pub type ULONG = c_ulong; pub type ULONG = c_ulong;
pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES;
pub type LPVOID = *mut c_void; pub type LPVOID = *mut c_void;
#[cfg(target_vendor = "win7")] #[cfg(target_vendor = "win7")]

View File

@ -79,7 +79,7 @@ pub struct OpenOptions {
attributes: c::DWORD, attributes: c::DWORD,
share_mode: c::DWORD, share_mode: c::DWORD,
security_qos_flags: c::DWORD, security_qos_flags: c::DWORD,
security_attributes: c::LPSECURITY_ATTRIBUTES, security_attributes: *mut c::SECURITY_ATTRIBUTES,
} }
#[derive(Clone, PartialEq, Eq, Debug)] #[derive(Clone, PartialEq, Eq, Debug)]
@ -241,7 +241,7 @@ impl OpenOptions {
// receive is `SECURITY_ANONYMOUS = 0x0`, which we can't check for later on. // receive is `SECURITY_ANONYMOUS = 0x0`, which we can't check for later on.
self.security_qos_flags = flags | c::SECURITY_SQOS_PRESENT; self.security_qos_flags = flags | c::SECURITY_SQOS_PRESENT;
} }
pub fn security_attributes(&mut self, attrs: c::LPSECURITY_ATTRIBUTES) { pub fn security_attributes(&mut self, attrs: *mut c::SECURITY_ATTRIBUTES) {
self.security_attributes = attrs; self.security_attributes = attrs;
} }