# Namespace and Context

The CIM classes reside in a namespace. The standard Microsoft namespace is called "root\cimv2" and is based on CIM v2.2.

The NCS2 WMI Provider is based on CIM v2.6. Because of this, and because of differences used in the keys of the objects, the NCS2 WMI Provider classes reside in a separate namespace called “root\IntelNCS2”. Intel PROSet for Windows Device Manager uses the “root\IntelNCS2” namespace.

## WBEM Context

Context objects are used to provide additional information to the NCS2 WMI Provider that cannot be passed as a parameter to a WMI API method. Use the IWbemContext to register context qualifiers. The interface pointer for the context object is passed as the last parameter of an IWbemServices method.

The following table contains the context qualifiers (named values) used by the NCS2 WMI Provider. Most qualifiers, like ClientSetId, are only used in conjunction with specific functional areas of the Provider, whereas MachineName can be set for all IWbemServices calls.

Any Read done with a context will read the current configuration until a write operation is performed. Subsequent reads will show the system as it would be after the write has succeeded.

A NULL context can be used for reads.

Context Qualifier | Variant Type | Description
ClientSetId | VT_BSTR | Identifies the application's copy of IANet network classes. The application cannot make any changes to the classes or their attributes without first establishing a client handle. See the section on the IANet_NetService class to see how to establish and use a client handle. This qualifier is not required if the application is only going to read data from the classes. The client handle allows the NCS2 software to manage single access to the configuration.
MachineName | VT_BSTR | The name of the machine that is connecting to the Provider. This is required for logging.

Home

Copyright© 2004 Intel Corporation. Legal Information