Directory Services

ADsPropSetHwnd

The ADsPropSetHwnd function is used to notify the notification object of the property page window handle.

BOOL ADsPropSetHwnd(
  HWND hNotifyObject,
  HWND hPage
);

Parameters

hNotifyObject
[in] The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.
hPage
[in] A window handle of the property page.

Return Values

Returns zero if the notification object does not exist or non-zero otherwise.

Remarks

An Active Directory property sheet extension normally calls this function while processing the WM_INITDIALOG message.

If the property sheet extension uses the ADsPropShowErrorDialog function, the extension should use ADsPropSetHwndWithTitle rather than ADsPropSetHwnd.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Adsprop.h.
Library: Use DsProp.lib.

See Also

ADsPropCreateNotifyObj, WM_INITDIALOG, ADsPropSetHwndWithTitle, ADsPropShowErrorDialog