VirtualBox

Changeset 58794 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 20, 2015 1:14:13 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104244
Message:

NetAdp/win: Delayed renaming of connections, address generation fix, creation issues fixed (#7973)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxNetCfg-win.h

    r57192 r58794  
    2727#ifndef ___VBox_VBoxNetCfg_win_h
    2828#define ___VBox_VBoxNetCfg_win_h
     29
     30/*
     31 * Defining VBOXNETCFG_DELAYEDRENAME postpones renaming of host-only adapter
     32 * connection during adapter creation after it has been assigned with an
     33 * IP address. This hopefully prevents collisions that may happen when we
     34 * attempt to rename a connection too early, while its configuration is
     35 * still being 'committed' by the network setup engine.
     36 */
     37#define VBOXNETCFG_DELAYEDRENAME
    2938
    3039#include <winsock2.h>
     
    7180VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetAdpInstall(IN INetCfg *pNc,IN LPCWSTR const pInfFullPath);
    7281
     82#ifndef VBOXNETCFG_DELAYEDRENAME
    7383VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinCreateHostOnlyNetworkInterface(IN LPCWSTR pInfPath, IN bool bIsInfPathFile,
    7484                                                                        OUT GUID *pGuid, OUT BSTR *lppszName,
    7585                                                                        OUT BSTR *pErrMsg);
     86#else /* VBOXNETCFG_DELAYEDRENAME */
     87VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinCreateHostOnlyNetworkInterface(IN LPCWSTR pInfPath, IN bool bIsInfPathFile,
     88                                                                        OUT GUID *pGuid, OUT BSTR *lppszId,
     89                                                                        OUT BSTR *pErrMsg);
     90VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinRenameHostOnlyConnection(IN const GUID *pGuid, IN LPCWSTR pszId,  OUT BSTR *pDevName);
     91#endif /* VBOXNETCFG_DELAYEDRENAME */
    7692VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinUpdateHostOnlyNetworkInterface(LPCWSTR pcsxwInf, BOOL *pbRebootRequired, LPCWSTR pcsxwId);
    7793VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinRemoveHostOnlyNetworkInterface(IN const GUID *pGUID, OUT BSTR *pErrMsg);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette