I am using JNA to use user32.dll and kernel32.dll . I have the sample code which can give me the handle if i specify the title
of the process.
hWnd = User32.FindWindowA(null, "Call of Duty®: Modern Warfare® 3 Multiplayer");
I really don't want to search for the process handle by the Title
. Is there any method which takes the exe name? Like this:
hWnd = User32.FindWindowByExecutable ( "iw5mp.exe" );
So that, it will return 0 if this process is not running otherwise the handle.
Also, the thing is when using JNA, eclipse obviously can't auto suggest the methods present in User32 or Kernel32 dll. So, what do you do in such cases. Just google the probable method ?