Directory Services


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

BOOL ADsPropSetHwnd(
  HWND hNotifyObject,
  HWND hPage


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

Return Values

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


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.


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