Define INVALID_HANDLE_VALUE
ourselves
This commit is contained in:
parent
ee5ef3aac9
commit
df58704701
@ -46,6 +46,8 @@
|
||||
pub use LINGER as linger;
|
||||
pub use TIMEVAL as timeval;
|
||||
|
||||
pub const INVALID_HANDLE_VALUE: HANDLE = ::core::ptr::invalid_mut(-1i32 as _);
|
||||
|
||||
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/exit-success-exit-failure?view=msvc-170
|
||||
pub const EXIT_SUCCESS: u32 = 0;
|
||||
pub const EXIT_FAILURE: u32 = 1;
|
||||
|
@ -2,6 +2,7 @@
|
||||
--config flatten std
|
||||
--filter
|
||||
// tidy-alphabetical-start
|
||||
!Windows.Win32.Foundation.INVALID_HANDLE_VALUE
|
||||
Windows.Wdk.Storage.FileSystem.FILE_COMPLETE_IF_OPLOCKED
|
||||
Windows.Wdk.Storage.FileSystem.FILE_CONTAINS_EXTENDED_CREATE_INFORMATION
|
||||
Windows.Wdk.Storage.FileSystem.FILE_CREATE
|
||||
@ -1923,7 +1924,6 @@ Windows.Win32.Foundation.HANDLE_FLAG_INHERIT
|
||||
Windows.Win32.Foundation.HANDLE_FLAG_PROTECT_FROM_CLOSE
|
||||
Windows.Win32.Foundation.HANDLE_FLAGS
|
||||
Windows.Win32.Foundation.HMODULE
|
||||
Windows.Win32.Foundation.INVALID_HANDLE_VALUE
|
||||
Windows.Win32.Foundation.MAX_PATH
|
||||
Windows.Win32.Foundation.NO_ERROR
|
||||
Windows.Win32.Foundation.NTSTATUS
|
||||
|
@ -3498,7 +3498,6 @@ fn clone(&self) -> Self {
|
||||
}
|
||||
pub const INIT_ONCE_INIT_FAILED: u32 = 4u32;
|
||||
pub const INVALID_FILE_ATTRIBUTES: u32 = 4294967295u32;
|
||||
pub const INVALID_HANDLE_VALUE: HANDLE = ::core::ptr::invalid_mut(-1i32 as _);
|
||||
pub const INVALID_SOCKET: SOCKET = -1i32 as _;
|
||||
#[repr(C)]
|
||||
pub struct IN_ADDR {
|
||||
|
Loading…
Reference in New Issue
Block a user