Hello,
I am trying to find if the application that I intend to install is already running on the system. For this I try to call the 'FindWindow' API from user32.dll.
Everytime I try to do so the OS gives me an error that that the program had performed an illegal operation and terminates.
DLL file name: %SysDir%\User32.dll
Function name: FindWindowA
Function parameters: "MyApp",""
Return value type: Long
Store return value in variable: %Found%
Default value: 0
Can any one help???
I am trying to find if the application that I intend to install is already running on the system. For this I try to call the 'FindWindow' API from user32.dll.
Everytime I try to do so the OS gives me an error that that the program had performed an illegal operation and terminates.
DLL file name: %SysDir%\User32.dll
Function name: FindWindowA
Function parameters: "MyApp",""
Return value type: Long
Store return value in variable: %Found%
Default value: 0
Can any one help???
Comment