windows - Detecting to which process a MessageBox belongs -
Is it possible to find out which message is a messagebank? If yes, then how?
You want to use Not sure why you want this process however in which All are excellent & amp; More favorable option solutions GetWindowThreadProcessId . Here is an example.
#include & lt; Windows.h & gt; Static Const TCHAR g_cszClass = TEXT ("# 32770"); / / Dialog box class / loud handle should be closed with CloseHandle () now when the handle gatemessage box processing (___In_LPCTRT LPCtital, __inDidWorks dwAccess) {HWWDWWD; DWORD dwProcessId = 0; Handle HRT; HWWD = SearchWindows (GCSSS, LPCET); If (hWnd! = NULL) {GetWindowThreadProcessId (hwnd, and deep process id); If (dwProcessId! = 0) hRET = Open Process (dwAccess, FALSE, dwProcessId); } Return hRET; }
Comments
Post a Comment