The WMI Win32 Provider component retrieves and updates data relevant to Win32 systems, such as the current settings of environment variables and the attributes of a logical disk. With this component, management applications can use Windows Management Instrumentation (WMI) to easily access this data. WMI Win32 Provider retrieves its information by making Win32 function calls and querying the system registry.
WMI Win32 Provider defines the classes used to describe hardware or software available on Win32 systems and the relationships between them. The Win32 classes ultimately derive from Common Information Model (CIM) classes, which describe components present in all management environments.
The Win32 classes follow the WMI naming convention. The schema name appears first followed by an underscore and then a descriptive name. For example, an instance of Win32_PointingDevice class represents a device that is used to point to regions on a Win32 system display, and an instance of the Win32_Processor class represents a device that can interpret a sequence of Win32 system machine instructions. Although most of the classes apply to any Win32 system, some classes and their properties are specific to the different Microsoft® operating systems.
Because the Win32 Provider is registered automatically as part of the WMI installation process, applications typically do not need to register it independently. All of the Win32 class definitions are stored in the WMI repository and made available through the WMI API. However, if an application does need to register the Win32 Provider, it does so by compiling the Cimwin32.mof file using the MOF compiler. To compile the Cimwin32.mof file at the command prompt, use the following syntax where <WBEM install dir> represents the location of the WMI installation, for example: C:\WINNT\System32\WBEM.
C:\> <WBEM install dir>\mofcomp <WBEM install dir>\cimwin32.mof
The following definitions can be used to register the Win32 Provider:
instance of __Win32Provider as $WinProv { Name = "CIMWin32"; ClsId = "{d63a5850-8f16-11cf-9f47-00aa00bf345c}"; }; instance of __InstanceProviderRegistration { Provider = $WinProv; SupportsGet = "TRUE"; SupportsPut = "TRUE"; SupportsDelete = "TRUE"; SupportsEnumeration = "TRUE"; QuerySupportLevels = {"WQL:UnarySelect"}; }; instance of __MethodProviderRegistration { Provider = $WinProv; };
Providers register with WMI to publish information about the data and operations that they support and their physical implementation. WMI uses this information to load and initialize the provider and to determine the right provider for a particular client request. All types of providers follow the same procedure for registration. Neither WMI nor the provider need to be running during the registration process. To register with WMI, a provider must complete the following steps.
There are no configuration requirements for this component.
The WMI Win32 Provider component is designed to work with the WMI Core component and other WMI provider components. WMI Win32 Provider also requires the WMI Tools component for compiling MOF files by using the Mofcomp.exe tool.
The following components have related functionality:
For more information on WMI, see the Platform Software Development Kit (SDK) at this Microsoft Web site.
]]>