ADsPropSetHwnd function (adsprop.h)

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

Syntax

BOOL ADsPropSetHwnd(
  [in] HWND hNotifyObj,
  [in] HWND hPage
);

Parameters

[in] hNotifyObj

The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.

[in] hPage

A window handle of the property page.

Return value

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

Remarks

An Active Directory Domain Services 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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header adsprop.h
Library Dsprop.lib
DLL Dsprop.dll

See also

ADsPropCreateNotifyObj

ADsPropSetHwndWithTitle

ADsPropShowErrorDialog

WM_INITDIALOG