[This is preliminary documentation and subject to change.]
The DIWbemServices.CreateClassEnumAsync method performs the same function as DIWbemServices.CreateClassEnum, except that the objects return to the specified DIWbemObjectSink implementation instead of to an enumerator.
In cases where the call succeeds, CIMOM asynchronously calls pResponseHandler – >Notify from another thread with class definitions until the query has been satisfied.
DIWbemServices.CreateClassEnumAsync(
[in] Superclass As String,
[in] lFlags As Long ,
[in] pCtx As Object,
[in] pResponseHandler As Object
) As Long
WBEM_FLAG_SHALLOW forces the enumeration to include only immediate subclasses of the specified superclass.
Note If Superclass is vbNullStringor blank, and WBEM_FLAG_DEEP is specified, all classes return.
WBEM_E_FAILED | Unspecified error. |
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
Asynchronous Methods, DIWbemServices.CreateClassEnum, DIWbemObjectSink