oui ca faitpartie du code de ma DLL.
Mais ya plus d´ ereur maintenant il fallait faire
extern "C"
void __declspec (dllimport) InitHook();
Voici le code de mon Hook :
void DLLEXPORT InitHook ( void )
{
HMouse = SetWindowsHookEx ( WH_MOUSE, (HOOKPROC)MouseProc, HInst, 0 );
}
et la proc
LRESULT CALLBACK MouseProc(int nCode,WPARAM wParam,LPARAM lParam)
{
if (wParam == WM_LBUTTONDOWN)
SetCursorPos(154,698);
return CallNextHookEx(HMouse,nCode,wParam,lParam);
}
mais cela n´ affiche pas le resulata exconter (ni meme aucun resultat)