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 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; }   

Not sure why you want this process however

  • Locate a fixed message box

    in which All are excellent & amp; More favorable option solutions

  • Comments

    Popular posts from this blog

    mysql - BLOB/TEXT column 'value' used in key specification without a key length -

    c# - Using Vici cool Storage with monodroid -

    python - referencing a variable in another function? -