共用方式為


使用適用於 WMI 的 COM API 擷取修改的類別

如果您使用適用於 WMI 的 COM API 來擷取或儲存本地化類別資訊,請在 strLocale 參數中,將地區設定指定為 IWbemLocator::ConnectServer 介面。 讀取或寫入修改的類別時,請指定 WBEM_FLAG_USE_AMENDED_QUALIFIERS 作為 iFlags 參數的旗標,以指出您想要使用當地語系化類別定義。

下表列出使用 WBEM_FLAG_USE_AMENDED_QUALIFIERS 旗標之方法的同步和異步版本。

同步方法 異步方法
IWbemServices::CreateClassEnum IWbemServices::CreateClassEnumAsync
IWbemServices::CreateInstanceEnum IWbemServices::CreateInstanceEnumAsync
IWbemServices::ExecQuery IWbemServices::ExecQueryAsync
IWbemServices::GetObject IWbemServices::GetObjectAsync
IWbemServices::PutClass IWbemServices::PutClassAsync
IWbemServices::PutInstance IWbemServices::PutInstanceAsync