1. In the winapp.exe I tried to use EnumWindow() call with a FindWindowEx()
to locate the control's m_hWnd, but the ActiveX control is not found because
it is not a top level window, or an immediate child window.
2. SendMessage(HWND_BROADCAST,, ..) only sends to top level windows, thus
the control does never receive the message.
3. Considering the control spawns a pid, I thought the winapp.exe could use
the ppid to identify the hWnd (code examples seem too complex, and possibly
prone to security model violations/errors).
4. Associate the control's m_hWnd using a mutex (if possible). I don't know
that this would work, but thought it might be a way.
How can the winapp.exe find/get the control's window handle (m_hWnd)?
Thanks!