Directory Services |
The IDsAdminNotifyHandler::Begin method is called when an event that the notification handler has requested is occurring. The notification handler specifies the events to receive notifications for when IDsAdminNotifyHandler::Initialize is called.
HRESULT Begin( ULONG uEvent, IDataObject pArg1, IDataObject pArg2, ULONG puFlags, BSTR* pBstr );
Value | Meaning |
---|---|
DSA_NOTIFY_DEL | An object is deleted. |
DSA_NOTIFY_REN | An object is renamed. |
DSA_NOTIFY_MOV | An object is moved to another container. |
DSA_NOTIFY_PROP | One or more properties of an object is modified. |
Value | Meaning |
---|---|
DSA_NOTIFY_FLAG_ADDITIONAL_DATA | If this flag is set, the entry for this notification handler in the confirmation dialog box is selected. If this flag is not set, the entry for this notification handler in the confirmation dialog box is not selected. |
DSA_NOTIFY_FLAG_FORCE_ADDITIONAL_DATA | If this flag is set, the entry for this notification handler in the confirmation dialog box is disabled and the user cannot change the selection state. |
The value and contents of pArg1 and pArg2 vary depending upon the event processed as indicated by uEvent. The following table explains what pArg1 and pArg2 will contain for each different event type.
uEvent | pArg1 | pArg2 |
---|---|---|
DSA_NOTIFY_DEL | Contains the object being deleted. | Not used. This will be NULL. |
DSA_NOTIFY_REN | Contains the previous name of the object. | Contains the new name of the object. |
DSA_NOTIFY_MOV | Contains the container that the object is moved from. | Contains the container that the object is moved to. |
DSA_NOTIFY_PROP | Contains the object for which the properties have changed. | Not used. This will be NULL. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsadmin.h.
IDsAdminNotifyHandler, IDsAdminNotifyHandler::Initialize, IDataObject, CFSTR_DSOBJECTNAMES, SysAllocString