[This is preliminary documentation and subject to change.]
The DIWbemServices.CreateInstanceEnumAsync method performs the same task as DIWbemServices.CreateInstanceEnum, except that the call returns immediately and the instances are asynchronously provided to the specified response handler.
DIWbemServices.CreateInstanceEnumAsync(
[in] Class As String,
[in] lFlags As Long,
[in] pCtx As Object,
[in] pResponseHandler As Object
) As Long
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_E_RPC_FAILURE | The RPC link between the client and CIMOM has failed. |
WBEM_NO_ERROR | Success. |
For more information on return values see Visual Basic error handeling and return values.
Asynchronous Methods, DIWbemServices.CreateInstanceEnum