Well a need came up for me to bust out with the windows programming again
I'm trying to create a program that will use a hook into another program to send it keyboard messages.
I know that I'll need to create a DLL that will handle the keyboard events and use SetWindowsHookEx to hook the DLL into the other process.
The problem is thatI'm not sure how to get the HINSTANCE of the other process using only the image name.
Using some code by bennyandthejets here I am able to get the HWND using the window title. While using the window title works its not ideal but thats ok for now. Is there a function that I'm missing to get the HINSTANCE from the HWND?
Thanks