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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

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

.

AttachThreadInput(idAttach, curThreadId, true);

.

AttachThreadInput(idAttach, curThreadId, false);

.
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: