Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SHIsChildOrSelf function

[This function is available through Windows XP and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]

Compares whether a window is equal to, a child of, or a descendant of, a second window.

Syntax


HRESULT SHIsChildOrSelf(
  _In_ HWND hwndParent,
  _In_ HWND hwnd
);

Parameters

hwndParent [in]

Type: HWND

A handle to the first window.

hwnd [in]

Type: HWND

A handle to a window to be tested against hwndParent.

Return value

Type: HRESULT

Returns S_OK if the window specified by hwnd is equal to, a child of, or a descendent of the window specified by hwndParent. Returns S_FALSE if the window specified by hwnd is not equal to, not a child of, and not a descendent of the window specified by hwndParent. The return value is undefined if either window handle is invalid.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server, Windows Server 2003 [desktop apps only]

Header

Shlwapi.h

DLL

Shlwapi.dll (version 5.0 or later)

See also

IsChild

 

 

Community Additions

ADD
Show:
© 2015 Microsoft