Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "AttachThreadInput" in [All]

user32

.
Summary
.

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

.
Documentation
[AttachThreadInput] on MSDN
.

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


 
Access PInvoke.net directly from VS: