User32GetFocus Method
Retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread's message queue..
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")]
public static IntPtr GetFocus()
<DllImportAttribute("User32.dll">]
Public Shared Function GetFocus As IntPtr
Dim returnValue As IntPtr
returnValue = User32.GetFocus()
public:
[DllImportAttribute(L"User32.dll")]
static IntPtr GetFocus()
[<DllImportAttribute("User32.dll")>]
static member GetFocus : unit -> IntPtr
No code example is currently available or this language may not be supported.
Return Value
IntPtr
The return value is the handle to the window with the keyboard focus.
If the calling thread's message queue does not have an associated window with the keyboard focus,
the return value is
Zero.