Ticket #9078 (closed defect: obsolete)

Opened 7 years ago

Last modified 4 years ago

NetServerGetInfo returns an invalid result

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

Description (last modified by frank) (diff)

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

comment:1 Changed 7 years ago by frank

  • Priority changed from blocker to minor
  • Description modified (diff)

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 Changed 7 years ago by lgx171

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 Changed 7 years ago by frank

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

comment:4 Changed 7 years ago by sunlover

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 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to obsolete
  • Description modified (diff)
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use