共用方式為


使用適用于 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::P utClass IWbemServices::P utClassAsync
IWbemServices::P utInstance IWbemServices::P utInstanceAsync