Changeset 58195 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Oct 12, 2015 3:13:47 PM (9 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/SharedFolders/driver
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/file.c
r55401 r58195 43 43 uint8_t *pBuffer, bool fLocked) 44 44 { 45 return vboxCallRead(pClient, pMap, hFile, offset, pcbBuffer, pBuffer, fLocked);45 return VbglR0SfRead(pClient, pMap, hFile, offset, pcbBuffer, pBuffer, fLocked); 46 46 } 47 47 … … 50 50 uint8_t *pBuffer, bool fLocked) 51 51 { 52 return vboxCallWrite(pClient, pMap, hFile, offset, pcbBuffer, pBuffer, fLocked);52 return VbglR0SfWrite(pClient, pMap, hFile, offset, pcbBuffer, pBuffer, fLocked); 53 53 } 54 54 … … 57 57 uint16_t offFirstPage, uint16_t cPages, RTGCPHYS64 *paPages) 58 58 { 59 return VbglR0S haredFolderReadPageList(pClient, pMap, hFile, offset, pcbBuffer, offFirstPage, cPages, paPages);59 return VbglR0SfReadPageList(pClient, pMap, hFile, offset, pcbBuffer, offFirstPage, cPages, paPages); 60 60 } 61 61 … … 64 64 uint16_t offFirstPage, uint16_t cPages, RTGCPHYS64 *paPages) 65 65 { 66 return VbglR0S haredFolderWritePageList(pClient, pMap, hFile, offset, pcbBuffer, offFirstPage, cPages, paPages);66 return VbglR0SfWritePageList(pClient, pMap, hFile, offset, pcbBuffer, offFirstPage, cPages, paPages); 67 67 } 68 68 … … 491 491 fu32Lock |= SHFL_LOCK_WAIT; 492 492 493 vboxRC = vboxCallLock(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,493 vboxRC = VbglR0SfLock(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 494 494 LowIoContext->ParamsFor.Locks.ByteOffset, LowIoContext->ParamsFor.Locks.Length, fu32Lock); 495 495 … … 524 524 525 525 /* Do the actual flushing of file buffers */ 526 vboxRC = vboxCallFlush(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile);526 vboxRC = VbglR0SfFlush(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile); 527 527 528 528 Status = VBoxErrorToNTStatus(vboxRC); … … 565 565 pObjInfo->cbObject = pNewFileSize->QuadPart; 566 566 567 vboxRC = vboxCallFSInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,567 vboxRC = VbglR0SfFsInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 568 568 SHFL_INFO_SET | SHFL_INFO_SIZE, &cbBuffer, (PSHFLDIRINFO)pObjInfo); 569 569 570 Log(("VBOXSF: vbsfSetEndOfFile: vboxCallFSInfo returned %Rrc\n", vboxRC));570 Log(("VBOXSF: vbsfSetEndOfFile: VbglR0SfFsInfo returned %Rrc\n", vboxRC)); 571 571 572 572 Status = VBoxErrorToNTStatus(vboxRC); 573 573 if (Status == STATUS_SUCCESS) 574 574 { 575 Log(("VBOXSF: vbsfSetEndOfFile: vboxCallFSInfo new allocation size = %RX64\n",575 Log(("VBOXSF: vbsfSetEndOfFile: VbglR0SfFsInfo new allocation size = %RX64\n", 576 576 pObjInfo->cbAllocated)); 577 577 -
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/info.c
r55401 r58195 165 165 cFiles = 0; 166 166 167 /* vboxCallDirInfo requires a pointer to uint32_t. */167 /* VbglR0SfDirInfo requires a pointer to uint32_t. */ 168 168 u32BufSize = cbHGCMBuffer; 169 169 170 170 Log(("VBOXSF: MrxQueryDirectory: CallDirInfo: File = 0x%08x, Flags = 0x%08x, Index = %d, u32BufSize = %d\n", 171 171 pVBoxFobx->hFile, fSFFlags, index, u32BufSize)); 172 vboxRC = vboxCallDirInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,172 vboxRC = VbglR0SfDirInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 173 173 ParsedPath, fSFFlags, index, &u32BufSize, (PSHFLDIRINFO)pHGCMBuffer, &cFiles); 174 174 Log(("VBOXSF: MrxQueryDirectory: u32BufSize after CallDirInfo = %d, rc = %Rrc\n", … … 592 592 } 593 593 594 vboxRC = vboxCallFSInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,594 vboxRC = VbglR0SfFsInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 595 595 SHFL_INFO_GET | SHFL_INFO_VOLUME, &cbHGCMBuffer, (PSHFLDIRINFO)pHGCMBuffer); 596 596 … … 765 765 } 766 766 767 vboxRC = vboxCallFSInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,767 vboxRC = VbglR0SfFsInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 768 768 SHFL_INFO_GET | SHFL_INFO_VOLUME, &cbHGCMBuffer, (PSHFLDIRINFO)pHGCMBuffer); 769 769 … … 1098 1098 1099 1099 Assert(pVBoxFobx && pNetRootExtension && pDeviceExtension); 1100 vboxRC = vboxCallFSInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,1100 vboxRC = VbglR0SfFsInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 1101 1101 SHFL_INFO_GET | SHFL_INFO_FILE, &cbHGCMBuffer, (PSHFLDIRINFO)pHGCMBuffer); 1102 1102 … … 1429 1429 1430 1430 Assert(pVBoxFobx && pNetRootExtension && pDeviceExtension); 1431 vboxRC = vboxCallFSInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,1431 vboxRC = VbglR0SfFsInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 1432 1432 SHFL_INFO_SET | SHFL_INFO_FILE, &cbBuffer, (PSHFLDIRINFO)pSHFLFileInfo); 1433 1433 -
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/net.c
r55401 r58195 206 206 } 207 207 208 vboxRC = vboxCallMapFolder(&pDeviceExtension->hgcmClient, ParsedPath, &pNetRootExtension->map);208 vboxRC = VbglR0SfMapFolder(&pDeviceExtension->hgcmClient, ParsedPath, &pNetRootExtension->map); 209 209 vbsfFreeNonPagedMem(ParsedPath); 210 210 if (vboxRC != VINF_SUCCESS) 211 211 { 212 Log(("VBOXSF: MRxCreateVNetRoot: vboxCallMapFolder failed with %d\n", vboxRC));212 Log(("VBOXSF: MRxCreateVNetRoot: VbglR0SfMapFolder failed with %d\n", vboxRC)); 213 213 Status = STATUS_BAD_NETWORK_NAME; 214 214 } … … 264 264 if (pNetRootExtension->phgcmClient) 265 265 { 266 int vboxRC = vboxCallUnmapFolder(pNetRootExtension->phgcmClient, &pNetRootExtension->map);266 int vboxRC = VbglR0SfUnmapFolder(pNetRootExtension->phgcmClient, &pNetRootExtension->map); 267 267 if (vboxRC != VINF_SUCCESS) 268 Log(("VBOXSF: MRxFinalizeVNetRoot: vboxCallUnmapFolder failed with %d\n",268 Log(("VBOXSF: MRxFinalizeVNetRoot: VbglR0SfUnmapFolder failed with %d\n", 269 269 vboxRC)); 270 270 pNetRootExtension->phgcmClient = NULL; -
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/path.c
r55401 r58195 261 261 262 262 /* Call host. */ 263 Log(("VBOXSF: vbsfProcessCreate: vboxCallCreate called.\n"));264 vboxRC = vboxCallCreate(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, ParsedPath, pCreateParms);263 Log(("VBOXSF: vbsfProcessCreate: VbglR0SfCreate called.\n")); 264 vboxRC = VbglR0SfCreate(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, ParsedPath, pCreateParms); 265 265 266 266 vbsfFreeNonPagedMem(ParsedPath); 267 267 } 268 268 269 Log(("VBOXSF: vbsfProcessCreate: vboxCallCreate returns vboxRC = %Rrc, Result = 0x%x\n",269 Log(("VBOXSF: vbsfProcessCreate: VbglR0SfCreate returns vboxRC = %Rrc, Result = 0x%x\n", 270 270 vboxRC, pCreateParms->Result)); 271 271 … … 447 447 if (pCreateParms && pCreateParms->Handle != SHFL_HANDLE_NIL) 448 448 { 449 vboxCallClose(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pCreateParms->Handle);449 VbglR0SfClose(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pCreateParms->Handle); 450 450 *pHandle = SHFL_HANDLE_NIL; 451 451 } … … 699 699 pSHFLFileInfo->Attr.fMode = NTToVBoxFileAttributes(pInfo->FileAttributes); 700 700 701 vboxRC = vboxCallFSInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile,701 vboxRC = VbglR0SfFsInfo(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, pVBoxFobx->hFile, 702 702 SHFL_INFO_SET | SHFL_INFO_FILE, &cbBuffer, (PSHFLDIRINFO)pSHFLFileInfo); 703 703 … … 745 745 } 746 746 747 vboxRC = vboxCallClose(&pDeviceExtension->hgcmClient,747 vboxRC = VbglR0SfClose(&pDeviceExtension->hgcmClient, 748 748 &pNetRootExtension->map, 749 749 pVBoxFobx->hFile); … … 839 839 840 840 /* Call host. */ 841 vboxRC = vboxCallRemove(&pDeviceExtension->hgcmClient, &pNetRootExtension->map,841 vboxRC = VbglR0SfRemove(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, 842 842 ParsedPath, 843 843 (pVBoxFobx->FileStandardInfo.Directory) ? SHFL_REMOVE_DIR : SHFL_REMOVE_FILE); … … 851 851 Status = VBoxErrorToNTStatus(vboxRC); 852 852 if (vboxRC != VINF_SUCCESS) 853 Log(("VBOXSF: vbsfRemove: vboxCallRemove failed with %Rrc\n", vboxRC));853 Log(("VBOXSF: vbsfRemove: VbglR0SfRemove failed with %Rrc\n", vboxRC)); 854 854 855 855 Log(("VBOXSF: vbsfRemove: Returned 0x%08X\n", Status)); … … 915 915 flags |= SHFL_RENAME_REPLACE_IF_EXISTS; 916 916 917 Log(("VBOXSF: vbsfRename: Calling vboxCallRename\n"));918 vboxRC = vboxCallRename(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, SrcPath, DestPath, flags);917 Log(("VBOXSF: vbsfRename: Calling VbglR0SfRename\n")); 918 vboxRC = VbglR0SfRename(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, SrcPath, DestPath, flags); 919 919 920 920 vbsfFreeNonPagedMem(SrcPath); … … 923 923 Status = VBoxErrorToNTStatus(vboxRC); 924 924 if (vboxRC != VINF_SUCCESS) 925 Log(("VBOXSF: vbsfRename: vboxCallRename failed with %Rrc\n", vboxRC));925 Log(("VBOXSF: vbsfRename: VbglR0SfRename failed with %Rrc\n", vboxRC)); 926 926 927 927 Log(("VBOXSF: vbsfRename: Returned 0x%08X\n", Status)); -
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.c
r51997 r58195 82 82 PMRX_VBOX_DEVICE_EXTENSION pDeviceExtension; 83 83 pDeviceExtension = (PMRX_VBOX_DEVICE_EXTENSION)((PBYTE)VBoxMRxDeviceObject + sizeof(RDBSS_DEVICE_OBJECT)); 84 vboxDisconnect(&pDeviceExtension->hgcmClient);85 } 86 87 vboxUninit();84 VbglR0SfDisconnect(&pDeviceExtension->hgcmClient); 85 } 86 87 VbglR0SfTerm(); 88 88 89 89 if (VBoxMRxDeviceObject) … … 422 422 423 423 /* Initialize VBox subsystem. */ 424 vboxRC = vboxInit();424 vboxRC = VbglR0SfInit(); 425 425 if (RT_FAILURE(vboxRC)) 426 426 { … … 431 431 /* Connect the HGCM client */ 432 432 RT_ZERO(hgcmClient); 433 vboxRC = vboxConnect(&hgcmClient);433 vboxRC = VbglR0SfConnect(&hgcmClient); 434 434 if (RT_FAILURE(vboxRC)) 435 435 { 436 436 Log(("VBOXSF: DriverEntry: ERROR while connecting to host (%Rrc)!\n", 437 437 vboxRC)); 438 vboxUninit();438 VbglR0SfTerm(); 439 439 return STATUS_UNSUCCESSFUL; 440 440 } … … 555 555 Log(("VBOXSF: DriverEntry: Failure! Status = 0x%08X\n", Status)); 556 556 557 vboxDisconnect(&hgcmClient);558 vboxUninit();557 VbglR0SfDisconnect(&hgcmClient); 558 VbglR0SfTerm(); 559 559 560 560 if (VBoxMRxDeviceObject) … … 711 711 uint32_t cMappings = RT_ELEMENTS(mappings); 712 712 713 int vboxRC = vboxCallQueryMappings(&pDeviceExtension->hgcmClient, mappings, &cMappings);713 int vboxRC = VbglR0SfQueryMappings(&pDeviceExtension->hgcmClient, mappings, &cMappings); 714 714 715 715 if (vboxRC == VINF_SUCCESS) … … 838 838 break; 839 839 840 vboxRC = vboxCallQueryMapName(&pDeviceExtension->hgcmClient,840 vboxRC = VbglR0SfQueryMapName(&pDeviceExtension->hgcmClient, 841 841 (*pConnectId) & ~0x80 /** @todo fix properly */, 842 842 pString, ShflStringSizeOfBuffer(pString));
Note:
See TracChangeset
for help on using the changeset viewer.