1- // Bindings generated by `windows-bindgen` 0.52 .0
1+ // Bindings generated by `windows-bindgen` 0.54 .0
22
33#![ allow( non_snake_case, non_upper_case_globals, non_camel_case_types, dead_code, clippy:: all) ]
44#[ link( name = "advapi32" ) ]
@@ -17,11 +17,11 @@ extern "system" {
1717}
1818#[ link( name = "kernel32" ) ]
1919extern "system" {
20- pub fn AcquireSRWLockExclusive ( srwlock : * mut SRWLOCK ) -> ( ) ;
20+ pub fn AcquireSRWLockExclusive ( srwlock : * mut SRWLOCK ) ;
2121}
2222#[ link( name = "kernel32" ) ]
2323extern "system" {
24- pub fn AcquireSRWLockShared ( srwlock : * mut SRWLOCK ) -> ( ) ;
24+ pub fn AcquireSRWLockShared ( srwlock : * mut SRWLOCK ) ;
2525}
2626#[ link( name = "kernel32" ) ]
2727extern "system" {
@@ -150,7 +150,7 @@ extern "system" {
150150}
151151#[ link( name = "kernel32" ) ]
152152extern "system" {
153- pub fn DeleteProcThreadAttributeList ( lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST ) -> ( ) ;
153+ pub fn DeleteProcThreadAttributeList ( lpattributelist : LPPROC_THREAD_ATTRIBUTE_LIST ) ;
154154}
155155#[ link( name = "kernel32" ) ]
156156extern "system" {
@@ -338,11 +338,11 @@ extern "system" {
338338}
339339#[ link( name = "kernel32" ) ]
340340extern "system" {
341- pub fn GetSystemInfo ( lpsysteminfo : * mut SYSTEM_INFO ) -> ( ) ;
341+ pub fn GetSystemInfo ( lpsysteminfo : * mut SYSTEM_INFO ) ;
342342}
343343#[ link( name = "kernel32" ) ]
344344extern "system" {
345- pub fn GetSystemTimeAsFileTime ( lpsystemtimeasfiletime : * mut FILETIME ) -> ( ) ;
345+ pub fn GetSystemTimeAsFileTime ( lpsystemtimeasfiletime : * mut FILETIME ) ;
346346}
347347#[ link( name = "kernel32" ) ]
348348extern "system" {
@@ -445,11 +445,11 @@ extern "system" {
445445}
446446#[ link( name = "kernel32" ) ]
447447extern "system" {
448- pub fn ReleaseSRWLockExclusive ( srwlock : * mut SRWLOCK ) -> ( ) ;
448+ pub fn ReleaseSRWLockExclusive ( srwlock : * mut SRWLOCK ) ;
449449}
450450#[ link( name = "kernel32" ) ]
451451extern "system" {
452- pub fn ReleaseSRWLockShared ( srwlock : * mut SRWLOCK ) -> ( ) ;
452+ pub fn ReleaseSRWLockShared ( srwlock : * mut SRWLOCK ) ;
453453}
454454#[ link( name = "kernel32" ) ]
455455extern "system" {
@@ -503,7 +503,7 @@ extern "system" {
503503}
504504#[ link( name = "kernel32" ) ]
505505extern "system" {
506- pub fn SetLastError ( dwerrcode : WIN32_ERROR ) -> ( ) ;
506+ pub fn SetLastError ( dwerrcode : WIN32_ERROR ) ;
507507}
508508#[ link( name = "kernel32" ) ]
509509extern "system" {
@@ -522,7 +522,7 @@ extern "system" {
522522}
523523#[ link( name = "kernel32" ) ]
524524extern "system" {
525- pub fn Sleep ( dwmilliseconds : u32 ) -> ( ) ;
525+ pub fn Sleep ( dwmilliseconds : u32 ) ;
526526}
527527#[ link( name = "kernel32" ) ]
528528extern "system" {
@@ -596,11 +596,11 @@ extern "system" {
596596}
597597#[ link( name = "kernel32" ) ]
598598extern "system" {
599- pub fn WakeAllConditionVariable ( conditionvariable : * mut CONDITION_VARIABLE ) -> ( ) ;
599+ pub fn WakeAllConditionVariable ( conditionvariable : * mut CONDITION_VARIABLE ) ;
600600}
601601#[ link( name = "kernel32" ) ]
602602extern "system" {
603- pub fn WakeConditionVariable ( conditionvariable : * mut CONDITION_VARIABLE ) -> ( ) ;
603+ pub fn WakeConditionVariable ( conditionvariable : * mut CONDITION_VARIABLE ) ;
604604}
605605#[ link( name = "kernel32" ) ]
606606extern "system" {
@@ -760,7 +760,7 @@ extern "system" {
760760}
761761#[ link( name = "ws2_32" ) ]
762762extern "system" {
763- pub fn freeaddrinfo ( paddrinfo : * const ADDRINFOA ) -> ( ) ;
763+ pub fn freeaddrinfo ( paddrinfo : * const ADDRINFOA ) ;
764764}
765765#[ link( name = "ws2_32" ) ]
766766extern "system" {
@@ -3083,9 +3083,9 @@ impl ::core::clone::Clone for EXCEPTION_RECORD {
30833083 * self
30843084 }
30853085}
3086- pub const EXCEPTION_STACK_OVERFLOW : NTSTATUS = - 1073741571i32 ;
3086+ pub const EXCEPTION_STACK_OVERFLOW : NTSTATUS = 0xC00000FD_u32 as _ ;
30873087pub const EXTENDED_STARTUPINFO_PRESENT : PROCESS_CREATION_FLAGS = 524288u32 ;
3088- pub const E_NOTIMPL : HRESULT = - 2147467263i32 ;
3088+ pub const E_NOTIMPL : HRESULT = 0x80004001_u32 as _ ;
30893089pub const ExceptionCollidedUnwind : EXCEPTION_DISPOSITION = 3i32 ;
30903090pub const ExceptionContinueExecution : EXCEPTION_DISPOSITION = 0i32 ;
30913091pub const ExceptionContinueSearch : EXCEPTION_DISPOSITION = 1i32 ;
@@ -3646,7 +3646,7 @@ pub type LPOVERLAPPED_COMPLETION_ROUTINE = ::core::option::Option<
36463646 dwerrorcode : u32 ,
36473647 dwnumberofbytestransfered : u32 ,
36483648 lpoverlapped : * mut OVERLAPPED ,
3649- ) -> ( ) ,
3649+ ) ,
36503650> ;
36513651pub type LPPROC_THREAD_ATTRIBUTE_LIST = * mut :: core:: ffi:: c_void ;
36523652pub type LPPROGRESS_ROUTINE = :: core:: option:: Option <
@@ -3672,7 +3672,7 @@ pub type LPWSAOVERLAPPED_COMPLETION_ROUTINE = ::core::option::Option<
36723672 cbtransferred : u32 ,
36733673 lpoverlapped : * mut OVERLAPPED ,
36743674 dwflags : u32 ,
3675- ) -> ( ) ,
3675+ ) ,
36763676> ;
36773677#[ repr( C ) ]
36783678pub struct M128A {
@@ -3771,7 +3771,7 @@ pub type PIO_APC_ROUTINE = ::core::option::Option<
37713771 apccontext : * mut :: core:: ffi:: c_void ,
37723772 iostatusblock : * mut IO_STATUS_BLOCK ,
37733773 reserved : u32 ,
3774- ) -> ( ) ,
3774+ ) ,
37753775> ;
37763776pub const PIPE_ACCEPT_REMOTE_CLIENTS : NAMED_PIPE_MODE = 0u32 ;
37773777pub const PIPE_ACCESS_DUPLEX : FILE_FLAGS_AND_ATTRIBUTES = 3u32 ;
@@ -3814,7 +3814,7 @@ pub type PTIMERAPCROUTINE = ::core::option::Option<
38143814 lpargtocompletionroutine : * const :: core:: ffi:: c_void ,
38153815 dwtimerlowvalue : u32 ,
38163816 dwtimerhighvalue : u32 ,
3817- ) -> ( ) ,
3817+ ) ,
38183818> ;
38193819pub type PWSTR = * mut u16 ;
38203820pub const READ_CONTROL : FILE_ACCESS_RIGHTS = 131072u32 ;
@@ -3847,7 +3847,7 @@ pub type SET_FILE_POINTER_MOVE_METHOD = u32;
38473847#[ repr( C ) ]
38483848pub struct SOCKADDR {
38493849 pub sa_family : ADDRESS_FAMILY ,
3850- pub sa_data : [ u8 ; 14 ] ,
3850+ pub sa_data : [ i8 ; 14 ] ,
38513851}
38523852impl :: core:: marker:: Copy for SOCKADDR { }
38533853impl :: core:: clone:: Clone for SOCKADDR {
@@ -3858,7 +3858,7 @@ impl ::core::clone::Clone for SOCKADDR {
38583858#[ repr( C ) ]
38593859pub struct SOCKADDR_UN {
38603860 pub sun_family : ADDRESS_FAMILY ,
3861- pub sun_path : [ u8 ; 108 ] ,
3861+ pub sun_path : [ i8 ; 108 ] ,
38623862}
38633863impl :: core:: marker:: Copy for SOCKADDR_UN { }
38643864impl :: core:: clone:: Clone for SOCKADDR_UN {
@@ -3949,12 +3949,12 @@ impl ::core::clone::Clone for STARTUPINFOW {
39493949 }
39503950}
39513951pub type STARTUPINFOW_FLAGS = u32 ;
3952- pub const STATUS_DELETE_PENDING : NTSTATUS = - 1073741738i32 ;
3953- pub const STATUS_END_OF_FILE : NTSTATUS = - 1073741807i32 ;
3954- pub const STATUS_INVALID_PARAMETER : NTSTATUS = - 1073741811i32 ;
3955- pub const STATUS_NOT_IMPLEMENTED : NTSTATUS = - 1073741822i32 ;
3956- pub const STATUS_PENDING : NTSTATUS = 259i32 ;
3957- pub const STATUS_SUCCESS : NTSTATUS = 0i32 ;
3952+ pub const STATUS_DELETE_PENDING : NTSTATUS = 0xC0000056_u32 as _ ;
3953+ pub const STATUS_END_OF_FILE : NTSTATUS = 0xC0000011_u32 as _ ;
3954+ pub const STATUS_INVALID_PARAMETER : NTSTATUS = 0xC000000D_u32 as _ ;
3955+ pub const STATUS_NOT_IMPLEMENTED : NTSTATUS = 0xC0000002_u32 as _ ;
3956+ pub const STATUS_PENDING : NTSTATUS = 0x103_u32 as _ ;
3957+ pub const STATUS_SUCCESS : NTSTATUS = 0x0_u32 as _ ;
39583958pub const STD_ERROR_HANDLE : STD_HANDLE = 4294967284u32 ;
39593959pub type STD_HANDLE = u32 ;
39603960pub const STD_INPUT_HANDLE : STD_HANDLE = 4294967286u32 ;
@@ -4115,8 +4115,8 @@ pub struct WSADATA {
41154115 pub iMaxSockets : u16 ,
41164116 pub iMaxUdpDg : u16 ,
41174117 pub lpVendorInfo : PSTR ,
4118- pub szDescription : [ u8 ; 257 ] ,
4119- pub szSystemStatus : [ u8 ; 129 ] ,
4118+ pub szDescription : [ i8 ; 257 ] ,
4119+ pub szSystemStatus : [ i8 ; 129 ] ,
41204120}
41214121#[ cfg( any( target_arch = "aarch64" , target_arch = "x86_64" ) ) ]
41224122impl :: core:: marker:: Copy for WSADATA { }
@@ -4131,8 +4131,8 @@ impl ::core::clone::Clone for WSADATA {
41314131pub struct WSADATA {
41324132 pub wVersion : u16 ,
41334133 pub wHighVersion : u16 ,
4134- pub szDescription : [ u8 ; 257 ] ,
4135- pub szSystemStatus : [ u8 ; 129 ] ,
4134+ pub szDescription : [ i8 ; 257 ] ,
4135+ pub szSystemStatus : [ i8 ; 129 ] ,
41364136 pub iMaxSockets : u16 ,
41374137 pub iMaxUdpDg : u16 ,
41384138 pub lpVendorInfo : PSTR ,
0 commit comments