@@ -46,6 +46,7 @@ pub type ULONG = c_ulong;
46
46
pub type ULONGLONG = u64 ;
47
47
#[ cfg( target_arch = "x86_64" ) ]
48
48
pub type DWORDLONG = ULONGLONG ;
49
+ pub type NTSTATUS = LONG ;
49
50
50
51
pub type LPBOOL = * mut BOOL ;
51
52
pub type LPBYTE = * mut BYTE ;
@@ -76,6 +77,8 @@ pub type SOCKET = ::os::windows::raw::SOCKET;
76
77
pub type socklen_t = c_int ;
77
78
pub type ADDRESS_FAMILY = USHORT ;
78
79
80
+ pub type ACCESS_MASK = DWORD ;
81
+
79
82
pub const TRUE : BOOL = 1 ;
80
83
pub const FALSE : BOOL = 0 ;
81
84
@@ -114,6 +117,9 @@ pub const SECURITY_SQOS_PRESENT: DWORD = 0x00100000;
114
117
115
118
pub const FIONBIO : c_ulong = 0x8004667e ;
116
119
120
+ pub const STATUS_SUCCESS : NTSTATUS = 0x00000000 ;
121
+ pub const STATUS_TIMEOUT : NTSTATUS = 0x00000102 ;
122
+
117
123
#[ cfg( target_arch = "arm" ) ]
118
124
const ARM_MAX_BREAKPOINTS : usize = 8 ;
119
125
#[ cfg( target_arch = "arm" ) ]
@@ -1118,6 +1124,7 @@ extern "system" {
1118
1124
lpFilename : LPWSTR ,
1119
1125
nSize : DWORD )
1120
1126
-> DWORD ;
1127
+ pub fn GetModuleHandleA ( lpModuleName : LPCSTR ) -> HMODULE ;
1121
1128
pub fn CreateDirectoryW ( lpPathName : LPCWSTR ,
1122
1129
lpSecurityAttributes : LPSECURITY_ATTRIBUTES )
1123
1130
-> BOOL ;
0 commit comments