Changes between Initial Version and Version 1 of Ticket #9078
- Timestamp:
- Jun 15, 2011 1:24:01 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9078
- Property Priority blocker → minor
-
Ticket #9078 – Description
initial v1 1 1 The following code gives 2 3 - 1707 under Virtual Box (OS=Windows Server 2008 R2 x64) 4 5 - 53 on a real Windows Server 7 x64 (Host) 2 - 1707 under Virtual Box (OS=Windows Server 2008 R2 x64) 3 - 53 on a real Windows Server 7 x64 (Host) 6 4 7 5 when the server name provided does not exist. 8 6 9 --- 10 7 {{{ 11 8 #include "stdafx.h" 12 13 9 #include <windows.h> 14 15 10 #include <lm.h> 16 11 17 18 12 int _tmain(int argc, _TCHAR* argv[]) 19 20 13 { 21 22 NET_API_STATUS nStatus; 23 24 SERVER_INFO_101 Buf; 25 26 nStatus = NetServerGetInfo ( L"UNKNOWNSERVER", 101, (LPBYTE *)&Buf ); 27 28 printf ( "%d\n", nStatus ); 29 30 return 0; 14 NET_API_STATUS nStatus; 15 SERVER_INFO_101 Buf; 16 nStatus = NetServerGetInfo ( L"UNKNOWNSERVER", 101, (LPBYTE *)&Buf ); 17 printf ( "%d\n", nStatus ); 18 return 0; 31 19 }