Bewerken

Delen via


Retrieving Amended Classes Using the COM API for WMI

If you are using the COM API for WMI to retrieve or store localized class information, specify the locale in the strLocale parameter to the IWbemLocator::ConnectServer interface. When reading or writing amended classes, indicate that you want to use localized class definitions by specifying WBEM_FLAG_USE_AMENDED_QUALIFIERS as a flag for the iFlags parameter.

The following table lists the synchronous and asynchronous versions of the methods that use the WBEM_FLAG_USE_AMENDED_QUALIFIERS flag.

Synchronous Method Asynchronous Method
IWbemServices::CreateClassEnum IWbemServices::CreateClassEnumAsync
IWbemServices::CreateInstanceEnum IWbemServices::CreateInstanceEnumAsync
IWbemServices::ExecQuery IWbemServices::ExecQueryAsync
IWbemServices::GetObject IWbemServices::GetObjectAsync
IWbemServices::PutClass IWbemServices::PutClassAsync
IWbemServices::PutInstance IWbemServices::PutInstanceAsync