User32GetParent(IntPtr) Method
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, SetLastError = true)]
public static IntPtr GetParent(
IntPtr hWnd
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetParent (
hWnd As IntPtr
) As IntPtr
Dim hWnd As IntPtr
Dim returnValue As IntPtr
returnValue = User32.GetParent(hWnd)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static IntPtr GetParent(
IntPtr hWnd
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetParent :
hWnd : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the window whose parent window handle is to be retrieved.
IntPtr
If the window is a child window, the return value is a handle to the parent window.
If the window is a top-level window with the
Popup style,
the return value is a handle to the owner window.
If the function fails, the return value is
Zero.
To get extended error information, call
GetLastWin32Error.