VirtualBox

Opened 13 years ago

Closed 10 years ago

#9078 closed defect (obsolete)

NetServerGetInfo returns an invalid result

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

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.

comment:2 by lgx171, 13 years ago

Without the VirtualBox additions, this works as expected This blocks (for example) the setup of SQL Server 2008 R2 on Windows 2008 R2 Clusters

comment:3 by Frank Mehnert, 13 years ago

The observation about the Guest Additions is interesting because AFAIK they don't mess with the network setup.

comment:4 by sunlover, 13 years ago

In Windows XP 32 bit guest the code gives 53. May be the problem only happens with some Windows versions. Please attach VBox.log of the session where you run the test program and get 1707.

comment:5 by Frank Mehnert, 10 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use