User32GetCapture Method
Retrieves a handle to the window (if any) that has captured the mouse.
Only one window at a time can capture the mouse;
this window receives mouse input whether or not the cursor is within its borders.
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", ExactSpelling = true)]
public static IntPtr GetCapture()
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function GetCapture As IntPtr
Dim returnValue As IntPtr
returnValue = User32.GetCapture()
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static IntPtr GetCapture()
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member GetCapture : unit -> IntPtr
No code example is currently available or this language may not be supported.
Return Value
IntPtr
The return value is a handle to the capture window associated with the current thread.
If no window in the thread has captured the mouse, the return value is
Zero.