I have a C ++ / CLI installation application that should close another application that I wrote, replace the .exe and dll application and restart the executable.
First of all, I need to close this window on the following lines:
HWND hwnd = FindWindow(NULL, windowTitle); if( hwnd != NULL ) { ::SendMessage(hwnd, (int)0x????, 0, NULL); }
those. find the appropriate window title (which works) ... but then what message do I need to send a remote window to ask to close it?
... or is there a more .net-ish way to do this without accessing the windows API?
Do not forget that I am limited to .net 2.0
source share