IPublisherFilter::PrepareToFire method (eventsys.h)
Prepares a publisher filter to begin firing a filtered list of subscriptions using a provided firing control. The firing control is contained in the event class object.
This method is supported only for backward compatibility. Otherwise, you should use the methods of the IMultiInterfacePublisherFilter interface.
Syntax
HRESULT PrepareToFire(
[in] BSTR methodName,
[in] IFiringControl *firingControl
);
Parameters
[in] methodName
The name of the event method to be fired.
[in] firingControl
A pointer to the IFiringControl interface on the firing control 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 event class object is ready to fire the event. |
|
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. |
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 |