User32SwitchToThisWindow(SafeHandle, Boolean) Method
Switches focus to the specified window and brings it to the foreground.
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 SwitchToThisWindow(
SafeHandle hWnd,
bool altTab
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function SwitchToThisWindow (
hWnd As SafeHandle,
altTab As Boolean
) As Boolean
Dim hWnd As SafeHandle
Dim altTab As Boolean
Dim returnValue As Boolean
returnValue = User32.SwitchToThisWindow(hWnd,
altTab)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool SwitchToThisWindow(
SafeHandle^ hWnd,
bool altTab
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member SwitchToThisWindow :
hWnd : SafeHandle *
altTab : bool -> bool
No code example is currently available or this language may not be supported.
- hWnd SafeHandle
-
A handle to the window.
- altTab Boolean
-
A for this parameter indicates that the window is being switched to
using the Alt+Tab key sequence.
This parameter should be otherwise.
Boolean
If the the window is enabled, the return value is
.
If the window is not enabled, the return value is
.