- Timestamp:
- Nov 14, 2017 4:21:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/VBoxProxyStub.c
r69500 r69692 170 170 /* Init IPRT. */ 171 171 RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); 172 Log12(("VBoxProxyStub[%u]/DllMain: DLL_PROCESS_ATTACH\n", GetCurrentProcessId())); 172 173 173 174 #ifdef VBOX_STRICT … … 195 196 196 197 case DLL_PROCESS_DETACH: 198 Log12(("VBoxProxyStub[%u]/DllMain: DLL_PROCESS_DETACH\n", GetCurrentProcessId())); 197 199 break; 198 200 } … … 210 212 *ppapInfo = &g_apProxyFiles[0]; 211 213 *ppClsid = &g_ProxyClsId; 214 Log12(("VBoxProxyStub[%u]/GetProxyDllInfo:\n", GetCurrentProcessId())); 212 215 } 213 216 … … 237 240 */ 238 241 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)); 239 244 return hrc; 240 245 } … … 248 253 HRESULT STDAPICALLTYPE DllCanUnloadNow(void) 249 254 { 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; 251 258 } 252 259 … … 262 269 ULONG STDMETHODCALLTYPE CStdStubBuffer_Release(IRpcStubBuffer *pThis) /* see CSTDSTUBBUFFERRELEASE in RpcProxy.h */ 263 270 { 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; 265 274 } 266 275 … … 275 284 ULONG WINAPI CStdStubBuffer2_Release(IRpcStubBuffer *pThis) /* see CSTDSTUBBUFFER2RELEASE in RpcProxy.h */ 276 285 { 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; 278 289 } 279 290
Note:
See TracChangeset
for help on using the changeset viewer.