VirtualBox

Changeset 3591 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 12, 2007 4:34:22 PM (18 years ago)
Author:
vboxsync
Message:

Debug logging update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxSeamless.cpp

    r3588 r3591  
    3434
    3535
     36void VBoxLogString(HANDLE hDriver, char *pszStr);
     37
    3638int VBoxSeamlessInit(const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread)
    3739{
    3840    *pfStartThread = false;
    39 
    4041    hModule = LoadLibrary(VBOXHOOK_DLL_NAME);
    4142    if (hModule)
     
    8485    return;
    8586}
     87
     88#if 0
     89
     90static char LogBuffer[1024];
     91
     92
     93VBGLR3DECL(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
     104void 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette