Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Associates an event method with a collection of subscription objects.
This method is supported only for backward compatibility. Otherwise, you should use the methods of the IMultiInterfacePublisherFilter interface.
Syntax
HRESULT Initialize(
[in] BSTR methodName,
[in] IDispatch *dispUserDefined
);
Parameters
[in] methodName
The name of the event method associated with the publisher filter.
[in] dispUserDefined
A pointer to the IEventSystem interface on an event system object or to the IEventControl interface on an event class object.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.
Return code | Description |
---|---|
|
The publisher filter was successfully initialized. |
|
An event was able to invoke some, but not all, of the subscribers. |
|
An event was unable to invoke any of the subscribers. |
|
An event was published but there were no subscribers. |
|
A syntax error occurred while trying to evaluate a query string. |
|
An invalid field name was used in a query string. |
|
An unexpected exception was raised. |
|
An unexpected internal error was detected. |
|
The owner SID on a per-user subscription does not exist. |
|
A user-supplied component or subscriber raised an exception. |
|
An interface has too many methods from which to fire events. |
|
A subscription cannot be stored unless the event class for the subscription already exists. |
|
Not all of the requested objects could be removed. |
|
COM+ is required for this operation, but it is not installed. |
Remarks
The publisher filter uses the pointer passed in dispUserDefined to obtain a list of subscribers, either by calling IEventSystem::Query or IEventControl::GetSubscriptions.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | eventsys.h |