WMI Win32 Provider

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.

Component Configuration

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.

  1. Register with the Component Object Model (COM) by creating registry entries if necessary. This process applies to all COM servers and is unrelated to WMI.
  2. Create a Managed Object Format (MOF) file that contains the following two instances:
    • An instance of the __Win32Provider class to describe the physical implementation of the provider.
    • An instance of a class derived either directly or indirectly from __ProviderRegistration to describe the logical implementation of the provider.
  3. Place the MOF file into a permanent directory, typically the provider's installation directory.
  4. Compile the MOF file using the MOF compiler or the IMofCompiler interface. The MOF compiler parses a file containing MOF statements and adds the classes and class instances defined in the file to the WMI repository.

There are no configuration requirements for this component.

Special Notes

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:

  • WMI Core
  • WMI View Provider
  • WMI DS Provider
  • WMI Windows Installer Provider
  • WMI SNMP Provider

For More Information

For more information on WMI, see the Platform Software Development Kit (SDK) at this Microsoft Web site.

]]>
%11%\wbem cimwin32.dll False File MSVCRT.dll File ntdll.dll File framedyn.dll File ADVAPI32.dll File GDI32.dll File KERNEL32.dll File ole32.dll File OLEAUT32.dll File USER32.dll File VERSION.dll File MPR.dll %11%\wbem krnlprov.dll False File ATL.DLL File WMI.dll %11%\wbem krnlprov.mof False %11%\wbem ntevt.dll False File PROVTHRD.dll %11%\wbem ntevt.mof False %11%\wbem regevent.mof False %11%\wbem stdprov.dll False File wbemcomn.dll File esscli.dll %11%\wbem wmipcima.dll False %11%\wbem wmipcima.mof False File NETAPI32.dll %11%\wbem wmipdskq.dll False %11%\wbem wmipdskq.mof False %11%\wbem wmipicmp.dll False File icmp.dll File WSOCK32.dll %11%\wbem wmipicmp.mof False %11%\wbem wmipiprt.dll False %11%\wbem wmipiprt.mof False %11%\wbem wmipjobj.dll False %11%\wbem wmipjobj.mof False %11%\wbem wmiprov.dll False File RPCRT4.dll %11%\wbem wmipsess.dll False %11%\wbem wmipsess.mof False %11%\wbem wmitimep.dll False %11%\wbem wmitimep.mof False File WINSPOOL.DRV File TRAFFIC.dll False True %11%\wbem\cimwin32.dll 0 0 False True %11%\wbem\krnlprov.dll 0 0 False True %11%\wbem\ntevt.dll 0 0 False True %11%\wbem\stdprov.dll 0 0 False True %11%\wbem\wmipcima.dll 0 0 False True %11%\wbem\wmipdskq.dll 0 0 False True %11%\wbem\wmipicmp.dll 0 0 False True %11%\wbem\wmipiprt.dll 0 0 False True %11%\wbem\wmipjobj.dll 0 0 False True %11%\wbem\wmiprov.dll 0 0 False True %11%\wbem\wmipsess.dll 0 0 False True %11%\wbem\wmitimep.dll 0 0 %11%\wbem wmi.mof False File security.dll File psapi.dll File cfgmgr32.dll File dhcpcsvc.dll File fmifs.dll File iphlpapi.dll File msacm32.dll File printui.dll File tapi32.dll File tcpmib.dll File ws2_32.dll File wtsapi32.dll File secur32.dll %11%\wbem krnlprov.mfl False %11%\wbem ntevt.mfl False %11%\wbem wmipcima.mfl False %11%\wbem wmipdskq.mfl False %11%\wbem wmipicmp.mfl False %11%\wbem wmipiprt.mfl False %11%\wbem wmipjobj.mfl False %11%\wbem wmipsess.mfl False %11%\wbem wmitimep.mfl False %11%\wbem wmi.mfl False %11%\wbem regevent.mfl False File mswsock.dll WMI Win32 Provider 1.0 This component allows managing printers, nt eventlog, and other services/features through WMI. 2000 Microsoft Corp. Microsoft Corp. vladj vladj;shbrown 10/31/2000 11/2/2001 12:45:32 AM