VirtualBox

Changeset 69692 in vbox for trunk


Ignore:
Timestamp:
Nov 14, 2017 4:21:16 PM (7 years ago)
Author:
vboxsync
Message:

VBoxProxyStub.c: Logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c

    r69500 r69692  
    170170            /* Init IPRT. */
    171171            RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE);
     172            Log12(("VBoxProxyStub[%u]/DllMain: DLL_PROCESS_ATTACH\n", GetCurrentProcessId()));
    172173
    173174#ifdef VBOX_STRICT
     
    195196
    196197        case DLL_PROCESS_DETACH:
     198            Log12(("VBoxProxyStub[%u]/DllMain: DLL_PROCESS_DETACH\n", GetCurrentProcessId()));
    197199            break;
    198200    }
     
    210212    *ppapInfo = &g_apProxyFiles[0];
    211213    *ppClsid  = &g_ProxyClsId;
     214    Log12(("VBoxProxyStub[%u]/GetProxyDllInfo:\n", GetCurrentProcessId()));
    212215}
    213216
     
    237240     */
    238241    AssertLogRelMsg(hrc == S_OK, ("%Rhrc\n",  hrc));
     242    Log12(("VBoxProxyStub[%u]/DllGetClassObject(%RTuuid, %RTuuid, %p): %#x + *ppv=%p\n",
     243           GetCurrentProcessId(), rclsid, riid, ppv, hrc, ppv ? *ppv : NULL));
    239244    return hrc;
    240245}
     
    248253HRESULT STDAPICALLTYPE DllCanUnloadNow(void)
    249254{
    250     return NdrDllCanUnloadNow(&g_ProxyStubFactory);                                        /* see DLLCANUNLOADNOW in RpcProxy.h */
     255    HRESULT hrc = NdrDllCanUnloadNow(&g_ProxyStubFactory);                                 /* see DLLCANUNLOADNOW in RpcProxy.h */
     256    Log12(("VBoxProxyStub[%u]/DllCanUnloadNow: %Rhrc\n", GetCurrentProcessId(), hrc));
     257    return hrc;
    251258}
    252259
     
    262269ULONG STDMETHODCALLTYPE CStdStubBuffer_Release(IRpcStubBuffer *pThis)                /* see CSTDSTUBBUFFERRELEASE in RpcProxy.h */
    263270{
    264     return NdrCStdStubBuffer_Release(pThis, (IPSFactoryBuffer *)&g_ProxyStubFactory);
     271    ULONG cRefs =  NdrCStdStubBuffer_Release(pThis, (IPSFactoryBuffer *)&g_ProxyStubFactory);
     272    Log12(("VBoxProxyStub[%u]/CStdStubBuffer_Release: %p -> %#x\n", GetCurrentProcessId(), pThis, cRefs));
     273    return cRefs;
    265274}
    266275
     
    275284ULONG WINAPI CStdStubBuffer2_Release(IRpcStubBuffer *pThis)                         /* see CSTDSTUBBUFFER2RELEASE in RpcProxy.h */
    276285{
    277     return NdrCStdStubBuffer2_Release(pThis, (IPSFactoryBuffer *)&g_ProxyStubFactory);
     286    ULONG cRefs = NdrCStdStubBuffer2_Release(pThis, (IPSFactoryBuffer *)&g_ProxyStubFactory);
     287    Log12(("VBoxProxyStub[%u]/CStdStubBuffer2_Release: %p -> %#x\n", GetCurrentProcessId(), pThis, cRefs));
     288    return cRefs;
    278289}
    279290
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