User32AttachThreadInput Method
Attaches or detaches the input processing mechanism of one thread to that of another thread.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool AttachThreadInput(
int threadIdAttach,
int threadIdAttachTo,
bool attach
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function AttachThreadInput (
threadIdAttach As Integer,
threadIdAttachTo As Integer,
attach As Boolean
) As Boolean
Dim threadIdAttach As Integer
Dim threadIdAttachTo As Integer
Dim attach As Boolean
Dim returnValue As Boolean
returnValue = User32.AttachThreadInput(threadIdAttach,
threadIdAttachTo, attach)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool AttachThreadInput(
int threadIdAttach,
int threadIdAttachTo,
bool attach
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member AttachThreadInput :
threadIdAttach : int *
threadIdAttachTo : int *
attach : bool -> bool
No code example is currently available or this language may not be supported.
- threadIdAttach Int32
-
The identifier of the thread to be attached to another thread.
The thread to be attached cannot be a system thread.
- threadIdAttachTo Int32
-
The identifier of the thread to which threadIdAttach will be attached.
This thread cannot be a system thread.
A thread cannot attach to itself. Therefore, threadIdAttachTo cannot equal idAttach
- attach Boolean
-
If this parameter is , the two threads are attached.
If the parameter is , the threads are detached.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.