1 /** 2 * Windows API header module 3 * 4 * Translated from MinGW Windows headers 5 * 6 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) 7 * Source: $(DRUNTIMESRC core/sys/windows/_lmremutl.d) 8 */ 9 /// Automatically imported and edited from the druntime module 10 /// core.sys.windows.lmremutl for the auto-generated win32 package. 11 module win32.lmremutl; 12 //version (Windows): 13 @system: 14 version (Win32_UseLib) pragma(lib, "netapi32"); 15 16 // D Conversion Note: DESC_CHAR is defined as TCHAR. 17 18 import win32.lmcons, win32.windef; 19 20 enum SUPPORTS_REMOTE_ADMIN_PROTOCOL = 2; 21 enum SUPPORTS_RPC = 4; 22 enum SUPPORTS_SAM_PROTOCOL = 8; 23 enum SUPPORTS_UNICODE = 16; 24 enum SUPPORTS_LOCAL = 32; 25 enum SUPPORTS_ANY = 0xFFFFFFFF; 26 27 enum NO_PERMISSION_REQUIRED = 1; 28 enum ALLOCATE_RESPONSE = 2; 29 enum USE_SPECIFIC_TRANSPORT = 0x80000000; 30 31 //[Yes] #ifndef DESC_CHAR_UNICODE 32 //alias CHAR DESC_CHAR; 33 //} else { 34 //[No] #else 35 //[No] typedef WCHAR DESC_CHAR; 36 //[No] #endif 37 // FIXME (D): Is this OK? 38 alias TCHAR DESC_CHAR; 39 40 alias DESC_CHAR* LPDESC; 41 42 struct TIME_OF_DAY_INFO { 43 DWORD tod_elapsedt; 44 DWORD tod_msecs; 45 DWORD tod_hours; 46 DWORD tod_mins; 47 DWORD tod_secs; 48 DWORD tod_hunds; 49 LONG tod_timezone; 50 DWORD tod_tinterval; 51 DWORD tod_day; 52 DWORD tod_month; 53 DWORD tod_year; 54 DWORD tod_weekday; 55 } 56 alias TIME_OF_DAY_INFO* PTIME_OF_DAY_INFO, LPTIME_OF_DAY_INFO; 57 58 extern (Windows) { 59 NET_API_STATUS NetRemoteTOD(LPCWSTR, PBYTE*); 60 NET_API_STATUS NetRemoteComputerSupports(LPCWSTR, DWORD, PDWORD); 61 NET_API_STATUS RxRemoteApi(DWORD, LPCWSTR, LPDESC, LPDESC, LPDESC, 62 LPDESC, LPDESC, LPDESC, LPDESC, DWORD, ...); 63 }