File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::io;
12
12
use std:: ffi:: { OsString , OsStr } ;
13
13
use std:: os:: windows:: prelude:: * ;
14
14
use std:: ptr;
15
- use libc:: { c_void , c_long} ;
15
+ use libc:: c_long;
16
16
17
17
pub type DWORD = u32 ;
18
18
type LPCWSTR = * const u16 ;
@@ -38,8 +38,6 @@ pub enum __HKEY__ {}
38
38
pub type HKEY = * mut __HKEY__ ;
39
39
pub type PHKEY = * mut HKEY ;
40
40
pub type REGSAM = DWORD ;
41
- pub type LPWSTR = * mut u16 ;
42
- pub type PFILETIME = * mut c_void ;
43
41
44
42
#[ link( name = "advapi32" ) ]
45
43
extern "system" {
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ pub type CHAR = c_char;
47
47
pub type HCRYPTPROV = LONG_PTR ;
48
48
pub type ULONG_PTR = c_ulonglong ;
49
49
pub type ULONG = c_ulong ;
50
+ #[ cfg( target_arch = "x86_64" ) ]
50
51
pub type ULONGLONG = u64 ;
52
+ #[ cfg( target_arch = "x86_64" ) ]
51
53
pub type DWORDLONG = ULONGLONG ;
52
54
53
55
pub type LPBOOL = * mut BOOL ;
@@ -66,7 +68,6 @@ pub type LPVOID = *mut c_void;
66
68
pub type LPWCH = * mut WCHAR ;
67
69
pub type LPWIN32_FIND_DATAW = * mut WIN32_FIND_DATAW ;
68
70
pub type LPWSADATA = * mut WSADATA ;
69
- pub type LPWSAPROTOCOLCHAIN = * mut WSAPROTOCOLCHAIN ;
70
71
pub type LPWSAPROTOCOL_INFO = * mut WSAPROTOCOL_INFO ;
71
72
pub type LPWSTR = * mut WCHAR ;
72
73
pub type LPFILETIME = * mut FILETIME ;
@@ -311,8 +312,6 @@ pub struct WSADATA {
311
312
pub szSystemStatus : [ u8 ; WSASYS_STATUS_LEN + 1 ] ,
312
313
}
313
314
314
- pub type WSAEVENT = HANDLE ;
315
-
316
315
#[ repr( C ) ]
317
316
pub struct WSAPROTOCOL_INFO {
318
317
pub dwServiceFlags1 : DWORD ,
You can’t perform that action at this time.
0 commit comments