keybd_event - PInvokeStackImbalance was detected
Posted on 2006-05-11
I've made this program that does the following:
1. Declare IP address to be used as a match.
2. Go through a list of IP address that are currently connected to local computer.
2.1 If Declared IP address is found and its connection state is equal to ESTABLISHED then Turn SCROLL LOCK ON.
I get an error at this part:
keybd_event(VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0)
The crazy part about it is that it compiles and runs just fine! I hope you guys can help me out.