Changeset 17174 in vbox for trunk/src/VBox/Main/win
- Timestamp:
- Feb 26, 2009 4:05:01 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43447
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/win/NetIfList-win.cpp
r17173 r17174 47 47 #include "netif.h" 48 48 49 #ifdef VBOX_WITH_NETFLT 49 50 #include <Wbemidl.h> 50 51 #include <comdef.h> … … 301 302 } 302 303 303 VBOXNETCFGWIN_DECL(HRESULT)VBoxNetCfgWinEnableStatic(IWbemServices * pSvc, IWbemClassObject *pObj, in_addr* aIp, in_addr * aMask, UINT cIp)304 static HRESULT VBoxNetCfgWinEnableStatic(IWbemServices * pSvc, IWbemClassObject *pObj, in_addr* aIp, in_addr * aMask, UINT cIp) 304 305 { 305 306 IWbemClassObject * pClass; … … 461 462 } 462 463 463 #ifdef VBOX_WITH_NETFLT464 464 # define VBOX_APP_NAME L"VirtualBox" 465 465 … … 651 651 } 652 652 653 #if 0 653 654 //TODO: this is sample currently, hardcoded balues should be removed and exposed to the API 654 655 static int enableStatic() … … 659 660 HRESULT hr; 660 661 661 hr = VBoxNetCfgWinQueryINetCfg(FALSE, L"VirtualBox", &pnc, &lpszLockedBy);662 hr = VBoxNetCfgWinQueryINetCfg(FALSE, VBOX_APP_NAME, &pnc, &lpszLockedBy); 662 663 if(hr == S_OK) 663 664 { … … 699 700 return r; 700 701 } 702 #endif 701 703 702 704 int NetIfList(std::list <ComObjPtr <HostNetworkInterface> > &list)
Note:
See TracChangeset
for help on using the changeset viewer.