User32GetWindow(IntPtr, GetWindowCmd) Method
Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window.
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 IntPtr GetWindow(
IntPtr hWnd,
GetWindowCmd gwCmd
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetWindow (
hWnd As IntPtr,
gwCmd As GetWindowCmd
) As IntPtr
Dim hWnd As IntPtr
Dim gwCmd As GetWindowCmd
Dim returnValue As IntPtr
returnValue = User32.GetWindow(hWnd,
gwCmd)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static IntPtr GetWindow(
IntPtr hWnd,
GetWindowCmd gwCmd
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetWindow :
hWnd : IntPtr *
gwCmd : GetWindowCmd -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to a window.
The window handle retrieved is relative to this window, based on the value of the uCmd parameter.
- gwCmd GetWindowCmd
-
The relationship between the specified window and the window whose handle is to be retrieved.
IntPtr
If the function succeeds, the return value is a window handle.
If no window exists with the specified relationship to the specified window, the return value is
Zero.
To get extended error information, call
GetLastWin32Error.