[This is preliminary documentation and subject to change.]
The DIWbemServices.ExecNotificationQueryAsync method performs the same task as DIWbemServices.ExecNotificationQuery, except that events are supplied to the specified response handler until you call CancelAsyncCall to stop the event notification.
DIWbemServices.ExecNotificationQueryAsync( [in] QueryLanguage
As String,
[in]
Query
As String,
[in]
lFlags
As Long,
[in]
pCtx
As Object,
[in]
pResponseHandler
As Object
) As Long
For a detailed explanation of this parameter, see Asynchronous Methods.
WBEM_E_FAILED | Unspecified error. |
WBEM_E_INVALID_CLASS | The specified class was invalid. |
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. |
WBEM_NO_ERROR | Success. |
For more information on return values see Visual Basic error handeling and return values
Other error codes return to the object sink specified by the pResponseHandler parameter.
Asynchronous Methods, DIWbemServices.ExecQuery, Queries