IDsAdminNotifyHandler::Initialize method (dsadmin.h)

The IDsAdminNotifyHandler::Initialize method is called to initialize the notification handler.

Syntax

HRESULT Initialize(
  [in]  IDataObject *pExtraInfo,
  [out] ULONG       *puEventFlags
);

Parameters

[in] pExtraInfo

Reserved. This parameter will be NULL.

[out] puEventFlags

Pointer to a ULONG value that receives a set of flags that indicate which events the notification handler should receive. This can be a combination of one or more of the following values. If this parameter receives zero, the notification handler will not receive any events.

DSA_NOTIFY_DEL

Notify the handler when an object is deleted.

DSA_NOTIFY_REN

Notify the handler when an object is renamed.

DSA_NOTIFY_MOV

Notify the handler when an object is moved.

DSA_NOTIFY_PROP

Notify the handler when a property is changed.

DSA_NOTIFY_ALL

Notify the handler in response to all events.

Return value

If the method succeeds, S_OK is returned. If the method fails, a standard HRESULT value is returned.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header dsadmin.h
DLL DSAdmin.dll

See also

IDataObject

IDsAdminNotifyHandler