Hi!
So i have a Shellproc in a dll, which should just display a message when a shell event occurs. And this is my main function which loads that dll:
so what else i have to do to get use of the Shellproc function. now the main function just returns immediately after execution.Code:int main(int argc, char* argv[]) { hinstDll = LoadLibrary((LPCTSTR)"DGDLL.dll"); if(hinstDll==NULL) cout<<"FAILD TO LOAD THE DLL"<<endl; hShellHookProc = (HOOKPROC)GetProcAddress(hinstDll,"ShellProc"); if(hShellHookProc != NULL){ SetWindowsHookEx(WH_SHELL, hShellHookProc, hinstDll, 0); }else{ cout<<"FAILD TO CONNECT TO THE DLL FUNCTION"<<endl; } return 0; }



LinkBack URL
About LinkBacks


