VirtualBox

Opened 13 years ago

Last modified 10 years ago

#9078 closed defect

NetServerGetInfo returns an invalid result — at Version 1

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

Description (last modified by Frank Mehnert)

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 (1)

comment:1 by Frank Mehnert, 13 years ago

Description: modified (diff)
priority: blockerminor

That's definitely not a blocker. It is even not clear if this is a bug in VirtualBox at all as this could be also due to a different networking configuration.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use