Changeset 38791 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Sep 19, 2011 1:21:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r38732 r38791 274 274 } 275 275 276 /** @todo r=bird: This function is not in the header file, why is it 277 * exported? */ 276 278 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinInstallInfAndComponent(IN INetCfg *pNetCfg, IN LPCWSTR pszwComponentId, IN const GUID *pguidClass, 277 IN LPCWSTR *apInfPaths, IN UINT cInfPaths,279 IN LPCWSTR const *apInfPaths, IN UINT cInfPaths, 278 280 OUT INetCfgComponent **ppComponent) 279 281 { … … 1858 1860 1859 1861 VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetFltInstall(IN INetCfg *pNc, 1860 IN LPCWSTR *apInfFullPaths, IN UINT cInfFullPaths)1862 IN LPCWSTR const *apInfFullPaths, IN UINT cInfFullPaths) 1861 1863 { 1862 1864 HRESULT hr = vboxNetCfgWinNetFltUninstall(pNc, SUOI_FORCEDELETE); … … 2056 2058 2057 2059 /* Build the display name in the form "::{GUID}". */ 2058 if (wcslen 2060 if (wcslen(wGuid) >= MAX_PATH) 2059 2061 return E_INVALIDARG; 2060 2062 WCHAR szAdapterGuid[MAX_PATH + 2] = {0}; 2061 swprintf 2063 swprintf(szAdapterGuid, L"::%ls", wGuid); 2062 2064 2063 2065 /* Create an instance of the network connections folder. */ 2064 hr = CoCreateInstance 2065 2066 reinterpret_cast <LPVOID *>(&pShellFolder));2066 hr = CoCreateInstance(CLSID_NetworkConnections, NULL, 2067 CLSCTX_INPROC_SERVER, IID_IShellFolder, 2068 reinterpret_cast<LPVOID *>(&pShellFolder)); 2067 2069 /* Parse the display name. */ 2068 2070 if (SUCCEEDED (hr)) … … 2709 2711 if (lppszName) 2710 2712 { 2711 *lppszName = ::SysAllocString((const OLECHAR *) DevName);2713 *lppszName = SysAllocString((const OLECHAR *) DevName); 2712 2714 if (!*lppszName) 2713 2715 {
Note:
See TracChangeset
for help on using the changeset viewer.