IGlobalInterfaceTable
-
Hello, I'm writing a browser helper object (BHO). It seems that I cannot do this :
IGlobalInterfaceTable *g_pGIT = NULL; /* ... */ void CALLBACK TimerProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) { HRESULT hr; IDOMPeek* pIDOMPeek = NULL; hr = g_pGIT->GetInterfaceFromGlobal( dwUser, IID_IDOMPeek, (void**)&pIDOMPeek); /* ... */
I get hr == 0x800401f0 Why and how should i do it ? Does I have to use ITimer, ITimerService, ... But i cannot find samples how to use that. Thanks. -
Hello, I'm writing a browser helper object (BHO). It seems that I cannot do this :
IGlobalInterfaceTable *g_pGIT = NULL; /* ... */ void CALLBACK TimerProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) { HRESULT hr; IDOMPeek* pIDOMPeek = NULL; hr = g_pGIT->GetInterfaceFromGlobal( dwUser, IID_IDOMPeek, (void**)&pIDOMPeek); /* ... */
I get hr == 0x800401f0 Why and how should i do it ? Does I have to use ITimer, ITimerService, ... But i cannot find samples how to use that. Thanks.