diff options
| author | Barry Golden <[email protected]> | 2019-09-26 09:04:22 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-26 09:04:22 -0700 |
| commit | f7eb738097908a1e32ca2a07a605bba0e85ccb95 (patch) | |
| tree | 9cc298db580c5ae737f6e3f25a09336ce6c99694 /wmi/wmisamp | |
| parent | d2a01860208bcce9f4777d54bec3c59c4c02e969 (diff) | |
* Update README.md
* Update README.md
Diffstat (limited to 'wmi/wmisamp')
| -rw-r--r-- | wmi/wmisamp/README.md | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/wmi/wmisamp/README.md b/wmi/wmisamp/README.md index c305be3e..ae810493 100644 --- a/wmi/wmisamp/README.md +++ b/wmi/wmisamp/README.md @@ -8,16 +8,6 @@ products: - windows-wdk --- - -<!--- - name: WmiSamp WMI Provider - platform: KMDF - language: cpp - category: WMI - description: Demonstrates how to register WMI providers in KMDF, create provider instances, and handle WMI queries sent to a device. - samplefwlink: http://go.microsoft.com/fwlink/p/?LinkId=618007 ----> - # Sample KMDF Driver Implementing a WMI Data Provider WmiSamp WMI Provider is a sample KMDF driver that implements a WMI data provider. @@ -32,9 +22,10 @@ The **Firefly**, **PCIDRV**, and **Toaster** sample drivers also implement WMI d ## Installation -In Visual Studio, you can press F5 to build the sample and then deploy it to a target machine. For more information, see [Deploying a Driver to a Test Computer](http://msdn.microsoft.com/en-us/library/windows/hardware/hh454834). +In Visual Studio, you can press F5 to build the sample and then deploy it to a target machine. For more information, see [Deploying a Driver to a Test Computer](https://docs.microsoft.com/windows-hardware/drivers/develop/deploying-a-driver-to-a-test-computer). -**Note** You can obtain redistributable framework updates by downloading the *wdfcoinstaller.msi* package from [WDK 8 Redistributable Components](http://go.microsoft.com/fwlink/p/?LinkID=226396). This package performs a silent install into the directory of your Windows Driver Kit (WDK) installation. You will see no confirmation that the installation has completed. You can verify that the redistributables have been installed on top of the WDK by ensuring there is a redist\\wdf directory under the root directory of the WDK, %ProgramFiles(x86)%\\Windows Kits\\8.0. +> [!NOTE] +> You can obtain redistributable framework updates by downloading the *wdfcoinstaller.msi* package from [WDK 8 Redistributable Components](https://go.microsoft.com/fwlink/p/?LinkID=253170). This package performs a silent install into the directory of your Windows Driver Kit (WDK) installation. You will see no confirmation that the installation has completed. You can verify that the redistributables have been installed on top of the WDK by ensuring there is a redist\\wdf directory under the root directory of the WDK, %ProgramFiles(x86)%\\Windows Kits\\8.0. ## Testing @@ -45,8 +36,12 @@ To test the WmiSamp driver, run the generated WmiSamp.vbs script file. This will WmiMofCk validates that the classes, properties, methods and events specified in a binary mof file (.bmf) are valid for use with WMI. It also generates useful output files needed to build and test the WMI data provider. - If the -h parameter is specified, a C language header file is created that defines the GUIDs, data structures, and method indices specified in the MOF file. + - If the -t parameter is specified, a VBScript applet is created that will query all data blocks and properties specified in the .mof file. This can be useful for testing WMI data providers. + - If the -x parameter is specified, a text file is created that contains the text representation of the binary .mof data. This can be included in the source of the driver if the driver supports reporting the binary .mof via a WMI query rather than a resource on the driver image file. + - Usage: wmimofck -h\<C Header output file\> -x\<Hexdump output file\> -t\<VBScript test output file\> \<binary mof input file\> -**Note** A byproduct of compiling the .mof file is a .vbs file. This is a VBScript file that is run from the command line on the target machine running the new device driver. It will cause WMI to query all data blocks and properties, and put the results into a .log file. This can be very useful for testing WMI support in your driver. For more sophisticated testing, the VBScript can be extended by hand.
\ No newline at end of file +> [!NOTE] +> A byproduct of compiling the .mof file is a .vbs file. This is a VBScript file that is run from the command line on the target machine running the new device driver. It will cause WMI to query all data blocks and properties, and put the results into a .log file. This can be very useful for testing WMI support in your driver. For more sophisticated testing, the VBScript can be extended by hand. |
