[This is
preliminary documentation and subject to change.]
This is a sample WMI user
mode provider that allows device drivers to expose diagnostic tests by means of
the CIM Common Diagnostic Model (CDM). The driver writer will implement its
diagnostics within the kernel mode device driver with WMI instrumentation and
then write Managed Object Format for the CDM classes that refer to the WDM
instrumentation. This sample, the CDM Provider, will expose the CDM classes on
behalf of the device driver.
Follow these steps to
build and run the CDM Provider with the sample code.
1.
Change
the name of the provider from CdmProv to your own unique name and guid in
cdmprov.mof.
2.
On
your development machine run build –cz in the directory to create
CDMProv.DLL
3.
On
your target machine run mofcomp cdmprov.mof to include the CDM
Provider specific information in the schema
4.
On
your target machine run regsvr32 cdmprov.dll to cause the
provider to self register.
Please see the DDK
DiagFilt sample and the cdmwdm.doc reference information. Also see MSDN for more information on
WMI user mode providers.
File Description
cdmprov.htm This filecdmprov.mof CDM Provider specific MOFcdmprov.rc Resource Script file for CDM Providercdmwdm.htm Reference information for using CDM Providercimmap.cpp WDM to CIM mapping routinescimmap.h WDM to CIM mapping routinesclassfac.cpp Provider class factory routinesclassprov.cpp Provider implementation routinesclassprov.def Module definition file for providerdebug.cpp Debugging routinesdebug.h Debugging routinesmaindll.cpp Main dll housing for providermakefile Build makefilereload.cpp PnP device start restart routinesreload.h PnP device start restart routinessample.h Provider implementation routinessources Build sourcestestinfo.cpp WDM interface routinestestinfo.h WDM interface routineswbemmisc.cpp Misc routines to interact with WMIwbemmisc.h Misc routines to interact with WMI
|
|
© 2000 Microsoft Corporation