Desktop Functions: Smart Device Functions:
|
Search Results for "AttachThreadInput" in [All]user32
static extern bool AttachThreadInput(uint idAttach, uint idAttachTo,
Public Shared Function AttachThreadInput(ByVal idAttach As System.UInt32, ByVal idAttachTo As System.UInt32, ByVal fAttach As Boolean) As Boolean The trick is to make windows ‘think’ that our process and the target window (hwnd) are related by attaching the threads (using AttachThreadInput API) and using an alternative API: BringWindowToTop. AttachThreadInput(foreThread, appThread, true); AttachThreadInput(foreThread, appThread, false); |