User32GetAncestor(SafeHandle, GetAncestorFlags) Method
Retrieves the handle to the ancestor of 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", ExactSpelling = true)]
public static IntPtr GetAncestor(
SafeHandle hWnd,
GetAncestorFlags flags
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function GetAncestor (
hWnd As SafeHandle,
flags As GetAncestorFlags
) As IntPtr
Dim hWnd As SafeHandle
Dim flags As GetAncestorFlags
Dim returnValue As IntPtr
returnValue = User32.GetAncestor(hWnd,
flags)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static IntPtr GetAncestor(
SafeHandle^ hWnd,
GetAncestorFlags flags
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member GetAncestor :
hWnd : SafeHandle *
flags : GetAncestorFlags -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd SafeHandle
-
A handle to the window whose ancestor is to be retrieved.
If this parameter is the desktop window, the function returns Zero.
- flags GetAncestorFlags
-
Flags that determines the ancestor to be retrieved
IntPtr
The return value is the handle to the ancestor window.