儲存庫 vbox 的更動 63081
- 時間撮記:
- 2016-8-6 下午01:58:35 (8 年 以前)
- 位置:
- trunk/src/VBox/Additions/WINNT/SharedFolders
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.c
r63080 r63081 1 1 /* $Id$ */ 2 2 /** @file 3 * VirtualBox Windows Guest Shared Folders. 4 * 5 * File System Driver initialization and generic routines 3 * VirtualBox Windows Guest Shared Folders - File System Driver initialization and generic routines 6 4 */ 7 5 -
trunk/src/VBox/Additions/WINNT/SharedFolders/np/vboxmrxnp.cpp
r62679 r63081 1 1 /* $Id$ */ 2 2 /** @file 3 * 4 * VirtualBox Windows Guest Shared Folders 5 * 6 * Network provider dll 3 * VirtualBox Windows Guest Shared Folders - Network provider dll 7 4 */ 8 5 … … 20 17 21 18 #include <iprt/win/windows.h> 22 #include <windef.h>23 #include <winbase.h>24 19 #include <winsvc.h> 25 20 #include <winnetwk.h> … … 1236 1231 DWORD cbEntry; 1237 1232 WCHAR *pStrings = (WCHAR *)((PBYTE)lpBuffer + *lpBufferSize); 1238 NETRESOURCE *pNetResource = (NETRESOURCE *)lpBuffer;1233 NETRESOURCE *pNetResourceInfo = (NETRESOURCE *)lpBuffer; 1239 1234 1240 1235 /* Check what kind of the resource is that by parsing path components. … … 1256 1251 } 1257 1252 1258 memset(pNetResource , 0, sizeof (*pNetResource));1259 1260 pNetResource ->dwType = RESOURCETYPE_ANY;1261 pNetResource ->dwDisplayType = RESOURCEDISPLAYTYPE_SERVER;1262 pNetResource ->dwUsage = RESOURCEUSAGE_CONTAINER;1253 memset(pNetResourceInfo, 0, sizeof (*pNetResourceInfo)); 1254 1255 pNetResourceInfo->dwType = RESOURCETYPE_ANY; 1256 pNetResourceInfo->dwDisplayType = RESOURCEDISPLAYTYPE_SERVER; 1257 pNetResourceInfo->dwUsage = RESOURCEUSAGE_CONTAINER; 1263 1258 1264 1259 pStrings = (PWCHAR)((PBYTE)pStrings - (cbEntry - sizeof(NETRESOURCE))); 1265 1260 1266 pNetResource ->lpRemoteName = pStrings;1261 pNetResourceInfo->lpRemoteName = pStrings; 1267 1262 *pStrings++ = L'\\'; 1268 1263 *pStrings++ = L'\\'; … … 1270 1265 pStrings += sizeof(MRX_VBOX_SERVER_NAME_U) / sizeof(WCHAR); 1271 1266 1272 pNetResource ->lpProvider = pStrings;1267 pNetResourceInfo->lpProvider = pStrings; 1273 1268 CopyMemory (pStrings, MRX_VBOX_PROVIDER_NAME_U, sizeof(MRX_VBOX_PROVIDER_NAME_U)); 1274 1269 pStrings += sizeof(MRX_VBOX_PROVIDER_NAME_U) / sizeof(WCHAR); 1275 1270 1276 1271 Log(("VBOXNP: NPGetResourceInformation: lpRemoteName: %ls, strings %p/%p\n", 1277 pNetResource ->lpRemoteName, pStrings, (PBYTE)lpBuffer + *lpBufferSize));1272 pNetResourceInfo->lpRemoteName, pStrings, (PBYTE)lpBuffer + *lpBufferSize)); 1278 1273 1279 1274 if (lplpSystem) … … 1309 1304 } 1310 1305 1311 memset(pNetResource , 0, sizeof (*pNetResource));1312 1313 pNetResource ->dwType = RESOURCETYPE_DISK;1314 pNetResource ->dwDisplayType = RESOURCEDISPLAYTYPE_SHARE;1315 pNetResource ->dwUsage = RESOURCEUSAGE_CONNECTABLE;1306 memset(pNetResourceInfo, 0, sizeof (*pNetResourceInfo)); 1307 1308 pNetResourceInfo->dwType = RESOURCETYPE_DISK; 1309 pNetResourceInfo->dwDisplayType = RESOURCEDISPLAYTYPE_SHARE; 1310 pNetResourceInfo->dwUsage = RESOURCEUSAGE_CONNECTABLE; 1316 1311 1317 1312 pStrings = (PWCHAR)((PBYTE)pStrings - (cbEntry - sizeof(NETRESOURCE))); 1318 1313 1319 pNetResource ->lpRemoteName = pStrings;1314 pNetResourceInfo->lpRemoteName = pStrings; 1320 1315 *pStrings++ = L'\\'; 1321 1316 *pStrings++ = L'\\'; … … 1325 1320 pStrings += lp - lpAfterName + 1; 1326 1321 1327 pNetResource ->lpProvider = pStrings;1322 pNetResourceInfo->lpProvider = pStrings; 1328 1323 CopyMemory(pStrings, MRX_VBOX_PROVIDER_NAME_U, sizeof(MRX_VBOX_PROVIDER_NAME_U)); 1329 1324 pStrings += sizeof(MRX_VBOX_PROVIDER_NAME_U) / sizeof(WCHAR); 1330 1325 1331 1326 Log(("VBOXNP: NPGetResourceInformation: lpRemoteName: %ls, strings %p/%p\n", 1332 pNetResource ->lpRemoteName, pStrings, (PBYTE)lpBuffer + *lpBufferSize));1327 pNetResourceInfo->lpRemoteName, pStrings, (PBYTE)lpBuffer + *lpBufferSize)); 1333 1328 1334 1329 if (lplpSystem) … … 1354 1349 } 1355 1350 1356 memset(pNetResource , 0, sizeof (*pNetResource));1357 1358 pNetResource ->dwType = RESOURCETYPE_DISK;1359 pNetResource ->dwDisplayType = RESOURCEDISPLAYTYPE_SHARE;1360 pNetResource ->dwUsage = RESOURCEUSAGE_CONNECTABLE;1351 memset(pNetResourceInfo, 0, sizeof (*pNetResourceInfo)); 1352 1353 pNetResourceInfo->dwType = RESOURCETYPE_DISK; 1354 pNetResourceInfo->dwDisplayType = RESOURCEDISPLAYTYPE_SHARE; 1355 pNetResourceInfo->dwUsage = RESOURCEUSAGE_CONNECTABLE; 1361 1356 1362 1357 pStrings = (PWCHAR)((PBYTE)pStrings - (cbEntry - sizeof(NETRESOURCE))); 1363 1358 1364 1359 /* The server + share. */ 1365 pNetResource ->lpRemoteName = pStrings;1360 pNetResourceInfo->lpRemoteName = pStrings; 1366 1361 *pStrings++ = L'\\'; 1367 1362 *pStrings++ = L'\\'; … … 1372 1367 *pStrings++ = 0; 1373 1368 1374 pNetResource ->lpProvider = pStrings;1369 pNetResourceInfo->lpProvider = pStrings; 1375 1370 CopyMemory(pStrings, MRX_VBOX_PROVIDER_NAME_U, sizeof(MRX_VBOX_PROVIDER_NAME_U)); 1376 1371 pStrings += sizeof(MRX_VBOX_PROVIDER_NAME_U) / sizeof(WCHAR); … … 1385 1380 1386 1381 Log(("VBOXNP: NPGetResourceInformation: lpRemoteName: %ls, strings %p/%p\n", 1387 pNetResource ->lpRemoteName, pStrings, (PBYTE)lpBuffer + *lpBufferSize));1382 pNetResourceInfo->lpRemoteName, pStrings, (PBYTE)lpBuffer + *lpBufferSize)); 1388 1383 Log(("VBOXNP: NPGetResourceInformation: *lplpSystem: %ls\n", *lplpSystem)); 1389 1384
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器