Changeset 3591 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 12, 2007 4:34:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxSeamless.cpp
r3588 r3591 34 34 35 35 36 void VBoxLogString(HANDLE hDriver, char *pszStr); 37 36 38 int VBoxSeamlessInit(const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread) 37 39 { 38 40 *pfStartThread = false; 39 40 41 hModule = LoadLibrary(VBOXHOOK_DLL_NAME); 41 42 if (hModule) … … 84 85 return; 85 86 } 87 88 #if 0 89 90 static char LogBuffer[1024]; 91 92 93 VBGLR3DECL(int) VbglR3GRPerform(HANDLE hDriver, VMMDevRequestHeader *pReq) 94 { 95 DWORD cbReturned; 96 if (!DeviceIoControl(hDriver, IOCTL_VBOXGUEST_VMMREQUEST, pReq, pReq->size, 97 pReq, pReq->size, &cbReturned, NULL)) 98 { 99 SvcDebugOut2("error doing IOCTL, last error: %d\n", GetLastError()); 100 } 101 return VINF_SUCCESS; 102 } 103 104 void VBoxLogString(HANDLE hDriver, char *pszStr) 105 { 106 VMMDevReqLogString *pReq = (VMMDevReqLogString *)LogBuffer; 107 int rc; 108 109 vmmdevInitRequest(&pReq->header, VMMDevReq_LogString); 110 strcpy(pReq->szString, pszStr); 111 pReq->header.size += strlen(pszStr); 112 rc = VbglR3GRPerform(hDriver, &pReq->header); 113 return; 114 } 115 116 #endif
Note:
See TracChangeset
for help on using the changeset viewer.