@@ -69,6 +69,7 @@ pub type LPWCH = *mut WCHAR;
6969pub type LPWIN32_FIND_DATAW = * mut WIN32_FIND_DATAW ;
7070pub type LPWSADATA = * mut WSADATA ;
7171pub type LPWSAPROTOCOL_INFO = * mut WSAPROTOCOL_INFO ;
72+ pub type LPSTR = * mut CHAR ;
7273pub type LPWSTR = * mut WCHAR ;
7374pub type LPFILETIME = * mut FILETIME ;
7475
@@ -157,6 +158,7 @@ pub const WSAECONNREFUSED: c_int = 10061;
157158
158159pub const MAX_PROTOCOL_CHAIN : DWORD = 7 ;
159160
161+ pub const PROCESS_QUERY_INFORMATION : DWORD = 0x0400 ;
160162pub const TOKEN_READ : DWORD = 0x20008 ;
161163pub const MAXIMUM_REPARSE_DATA_BUFFER_SIZE : usize = 16 * 1024 ;
162164pub const FSCTL_GET_REPARSE_POINT : DWORD = 0x900a8 ;
@@ -218,6 +220,10 @@ pub const CREATE_NEW_PROCESS_GROUP: DWORD = 0x00000200;
218220pub const CREATE_UNICODE_ENVIRONMENT : DWORD = 0x00000400 ;
219221pub const STARTF_USESTDHANDLES : DWORD = 0x00000100 ;
220222
223+ pub const CP_ACP : UINT = 0 ;
224+
225+ pub const WC_NO_BEST_FIT_CHARS : DWORD = 0x00000400 ;
226+
221227pub const AF_INET : c_int = 2 ;
222228pub const AF_INET6 : c_int = 23 ;
223229pub const SD_BOTH : c_int = 2 ;
@@ -888,6 +894,9 @@ extern "system" {
888894 pNumArgs : * mut c_int ) -> * mut * mut u16 ;
889895 pub fn GetTempPathW ( nBufferLength : DWORD ,
890896 lpBuffer : LPCWSTR ) -> DWORD ;
897+ pub fn OpenProcess ( dwDesiredAccess : DWORD ,
898+ bInheritHandle : BOOL ,
899+ dwProcessId : DWORD ) -> HANDLE ;
891900 pub fn OpenProcessToken ( ProcessHandle : HANDLE ,
892901 DesiredAccess : DWORD ,
893902 TokenHandle : * mut HANDLE ) -> BOOL ;
@@ -973,6 +982,14 @@ extern "system" {
973982 pub fn DeleteFileW ( lpPathName : LPCWSTR ) -> BOOL ;
974983 pub fn GetCurrentDirectoryW ( nBufferLength : DWORD , lpBuffer : LPWSTR ) -> DWORD ;
975984 pub fn SetCurrentDirectoryW ( lpPathName : LPCWSTR ) -> BOOL ;
985+ pub fn WideCharToMultiByte ( CodePage : UINT ,
986+ dwFlags : DWORD ,
987+ lpWideCharStr : LPCWSTR ,
988+ cchWideChar : c_int ,
989+ lpMultiByteStr : LPSTR ,
990+ cbMultiByte : c_int ,
991+ lpDefaultChar : LPCSTR ,
992+ lpUsedDefaultChar : LPBOOL ) -> c_int ;
976993
977994 pub fn closesocket ( socket : SOCKET ) -> c_int ;
978995 pub fn recv ( socket : SOCKET , buf : * mut c_void , len : c_int ,
@@ -1136,6 +1153,12 @@ compat_fn! {
11361153 _dwFlags: DWORD ) -> DWORD {
11371154 SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ; 0
11381155 }
1156+ pub fn QueryFullProcessImageNameW ( _hProcess: HANDLE ,
1157+ _dwFlags: DWORD ,
1158+ _lpExeName: LPWSTR ,
1159+ _lpdwSize: LPDWORD ) -> BOOL {
1160+ SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ; 0
1161+ }
11391162 pub fn SetThreadStackGuarantee ( _size: * mut c_ulong) -> BOOL {
11401163 SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ; 0
11411164 }
0 commit comments