Application Closing
-
Hi, Can Any one tell me how can i close one application from other one as i have the path of first application in the second application while sing registry.... Neo.
-
Hi, Can Any one tell me how can i close one application from other one as i have the path of first application in the second application while sing registry.... Neo.
CWnd pwnd = FindWindow(LPCTSTR lpszClassName, LPCTSTR lpszWindowName ); PostMessage(pwnd->m_hWnd, WM_CLOSE, 0, 0); You can find lpszClassName and lpszWindowName parameters of FindWindow() with the Spy++ utility from Visual Studio Tools "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
CWnd pwnd = FindWindow(LPCTSTR lpszClassName, LPCTSTR lpszWindowName ); PostMessage(pwnd->m_hWnd, WM_CLOSE, 0, 0); You can find lpszClassName and lpszWindowName parameters of FindWindow() with the Spy++ utility from Visual Studio Tools "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell