VirtualBox

Opened 13 years ago

Last modified 11 years ago

#9078 closed defect

NetServerGetInfo returns an invalid result — at Initial Version

Reported by: lgx171 Owned by:
Component: other Version: VirtualBox 4.0.8
Keywords: Cc:
Guest type: Windows Host type: other

Description

The following code gives

  • 1707 under Virtual Box (OS=Windows Server 2008 R2 x64)
  • 53 on a real Windows Server 7 x64 (Host)

when the server name provided does not exist.

---

#include "stdafx.h"

#include <windows.h>

#include <lm.h>

int _tmain(int argc, _TCHAR* argv[])

{

NET_API_STATUS nStatus;

SERVER_INFO_101 Buf;

nStatus = NetServerGetInfo ( L"UNKNOWNSERVER", 101, (LPBYTE *)&Buf );

printf ( "%d\n", nStatus );

return 0;

}

Change History (0)

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy