SMS_ResIDValueLookup Server WMI Class

 

Updated: November 1, 2013

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

The SMS_ResIDValueLookup Windows Management Instrumentation (WMI) class is an SMS Provider server class, in System Center 2012 R2 Configuration Manager, that maps integers to localized text strings found in a resource DLL.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_ResIDValueLookup 
{
     String LookupName;
     UInt32 IntLookupValue;
     String StringLookupValue;
     String ResDLL;
     UInt32 ResID;
};

The SMS_ResIDValueLookup class does not define any methods.

LookupName

Data type: String 

Access type: Read/Write

Qualifiers: [key]

Name specified in the ResIDValueLookup property qualifier.

IntLookupValue

Data type: UInt32 

Access type: Read/Write

Qualifiers: [key]

Value from the property to be localized. Specify a value for this property if the data type of the property to be localized is an integer. The default value is 0.

StringLookupValue

Data type: String 

Access type: Read/Write

Qualifiers: [key]

Value from the property to be localized. Specify a value for this property if the data type of the property to be localized is a string. The default value is "".

ResDLL

Data type: String 

Access type: Read/Write

Qualifiers: None

Resource DLL name from which to retrieve a localized string. The default value is "".

ResID

Data type: UInt32 

Access type: Read/Write

Qualifiers: None

Resource ID from which to retrieve the localized string. The default value is 0.

Class qualifiers for this class include:

  • Static

For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

The System Center 2012 R2 Configuration Manager console uses this class to convert enumerated property values into localized text strings. The console uses the ResIDValueLookup qualifier value and the property value of the class instance to look up the location of the localized string.

For example, to get the location of the localized string for the Priority property of SMS_Package Server WMI Class, the property must contain a ResIDValueLookup property qualifier:

  1. Get the property value.

  2. Either query SMS_ResIDValueLookup or get the object directly by specifying the full path. The query and the object path are as follows.

    SELECT * FROM SMS_ResIDValueLookup
    WHERE LookupName = < property qualifier value>
    AND IntLookupValue = <property value>
    
    SMS_ResIDValueLookup.IntLookupValue=<property value>,LookupName="<qualifier value>",StringLookupValue=""
    

When you have the location and resource identifier, you can use the LoadString Win32 function to return the localized text string for the Priority value.

Show: