here is my code for a local windows hook, the important bit is maked with commentary:
public static extern long SetWindowsHookEx(long idHook,long lpfn,long hmod,long dwThreadId);
public static extern long CallNextHookEx(long idHook,long ncode,long wParam,long lParam);
public static extern long UnhookWindowsHookEx(long hHook);
public const int WH_KEYBOARD=2;
public long hHook;
public long Keypress(long idHook,long wParam,long lParam)
private void button1_Click(object sender, System.EventArgs e)
hHook=SetWindowsHookEx(WH_KEYBOARD,0,0,0);//ERROR in last 3 values should be: address, wParam, lParam in that order
private void button2_Click(object sender, System.EventArgs e)
1) how do i say that the 'address' is the function "Keypress"?
2) what do wParam and lParam do?
2) what values are required for wParam and lParam?
note: ive already posted this in the programming section but i wanted to move it here and to put more points on it... if u answer this correctly i will also give u the 55 points i have on the other question in programming (its asked from my other account suma_ds)
thankz 4 readin... suma