I want to send wm_close to another process, with which i want end that process safely.
int _tmain(int argc, _TCHAR* argv[]) { DWORD SetOfPID; SetOfP
Are you sure that the window you are finding is the correct one? You can check easily with Spy++. Moreover, when searching for a window, I think it's better to use EnumWindows. I'm not sure your method is correct.