diff options
| author | Barry Golden <[email protected]> | 2015-08-05 18:05:49 -0700 |
|---|---|---|
| committer | Barry Golden <[email protected]> | 2015-08-05 18:05:49 -0700 |
| commit | 36bf4df42a182a6b6d3e707099f985fe8a644001 (patch) | |
| tree | db99a24955a528a7b822df98aa6dcdcbce70a9bd | |
| parent | c7e42e0b72ed24fb3d9bb1da085ea67a68e99554 (diff) | |
Remove obsolete readme.htm
| -rw-r--r-- | biometrics/driver/readme.htm | 166 | ||||
| -rw-r--r-- | hid/hidusbfx2/readme.htm | 1797 | ||||
| -rw-r--r-- | setup/DIFxAPI/AppDrv/readme.htm | 109 | ||||
| -rw-r--r-- | setup/DIFxAPI/DIFxCmd/readme.htm | 59 | ||||
| -rw-r--r-- | video/KMDOD/readme.htm | 46 | ||||
| -rw-r--r-- | wmi/wmiacpi/readme.htm | 228 | ||||
| -rw-r--r-- | wmi/wmiacpi/wmi-acpi.htm | 1804 |
7 files changed, 0 insertions, 4209 deletions
diff --git a/biometrics/driver/readme.htm b/biometrics/driver/readme.htm deleted file mode 100644 index fdd2bd00..00000000 --- a/biometrics/driver/readme.htm +++ /dev/null @@ -1,166 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML DIR="LTR" xmlns:MSHelp="http://msdn.microsoft.com/MSHelp"> -<HEAD> -<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -<TITLE>Windows Biometric Driver Interface (WBDI) Sample</TITLE> -<META NAME="ms.locale" content="en-us"> -<META NAME="DESCRIPTION" CONTENT="Biometric_s, Samples, Design Guide, Windows Biometric Driver Interface (WBDI) Sample"><xml><MSHelp:Attr Name="WdkCategory" Value="WdkBio"/> -<MSHelp:Attr Name="WdkCategory" Value="WdkSample"/> -<MSHelp:Attr name="CommunityContent" value="1"/> -<MSHelp:Attr name="EnableMachineTranslation" value="1"/> -<MSHelp:Keyword Index="A" Term="BiometricSamples_1ede4079-1f99-4d1f-b3ae-aef6efe61c64.xml"/></xml><LINK REL="stylesheet" type="text/css" HREF="backsdk4.css"><SCRIPT SRC="langref.js"></SCRIPT><style>dd {margin-bottom:0em; margin-left:1.9em; }</style> -<style>.divclass {behavior:url(#default#savehistory);}</style> -<META NAME="save" CONTENT="history"> -<LINK REL="stylesheet" TYPE="text/css" HREF="ms-help://Hx/HxRuntime/HxLink.css"> -<LINK REL="stylesheet" TYPE="text/css" HREF="ms-help://Hx/HxRuntime/HxLinkDefault.css"> -</HEAD> -<Body topmargin="0"> -<DIV STYLE="display:none;"></DIV> -<TABLE CLASS="buttonbarshade" CELLSPACING="0" border="0"><TR><TD NOWRAP="true">�</TD></TR></TABLE> -<TABLE CLASS="buttonbartable" CELLSPACING="0"> -<TR ID="hdr"> -<TD NOWRAP="true" CLASS="runninghead">Windows Driver Kit: Biometric Devices</TD> -</TR> -</TABLE> -<H1><A NAME="BiometricSamples_1ede4079-1f99-4d1f-b3ae-aef6efe61c64.xml"></A>Windows Biometric Driver Interface (WBDI) Sample</H1><span style="color:#FF0000">[This is preliminary documentation and subject to change.]<BR><BR></span><H4>Description</H4> -<P>�This sample implements the Windows Biometric Driver Interface (WBDI). It contains shell code for handling the mandatory IOCTLs necessary to interoperate with the Windows Biometric Framework. A WBDI driver can be deployed in conjunction with an engine adapter DLL to allow a sensor to be exposed from the Windows Biometric Framework. This sample has been written to make use of the UMDF framework, which allows for ease of development and system stability.</P> -<H4>Theory of Operation</H4> -<P>�This sample was taken from the UMDF FX2 sample and modified to expose WBDI. It will install on top of the OSR FX2 test device. It still has basic USB operations for talking to a USB device, but it also has the necessary hooks to make this a WBDI driver:</P> -<P>Installs WBDI driver, including correct class GUID settings and icons, and registry settings for Windows Biometric Framework configuration</P> -<P>Publishes WBDI device interface</P> -<P>Supports all the mandatory WBDI IOCTLs</P> -<P>Supports cancellation</P> -<P>Can be opened with exclusivity</P> -<P>All of these things are required for the Windows Biometric Framework service to recognize this device as a biometric device and set up a Biometric Unit. It allows the service to properly control the device.</P> -<H4>Implementation and Design</H4> -<P>The sample makes use of ATL support for simplified handling of COM objects with UMDF.�</P> -<P>The driver makes use of a parallel queue so that multiple requests can be outstanding at once. </P> -<P>It uses device level-locking to simplify internal thread synchronization. This means that only one framework callback can be active at a time.</P> -<P>It supports cancellation of any IOCTL which may be I/O intensive, particularly a capture IOCTL. This sample does not have a real capture mechanism, so it is simulated by a 5 second delay returning a capture IOCTL. Cancellation is supported through the mechanism exposed by WUDF, with a callback for a request object. Cancellation support is required for all IOCTLs.</P> -<P>There are hooks for all WBDI IOCTLs, including the optional IOCTLs.</P> -<P>PnP is very simple for this driver. It needs to only implement OnPrepareHardware and OnReleaseHardware from IPnpCallbackHardware.</P> -<P>Some device drivers may need to keep several pending reads to the WinUsb I/O target in order to properly flush all I/O that comes from the device during a capture.</P> -<H4>Software Requirements</H4> -<P>The sample runs on the following Windows operating systems: </P><B></B><UL type="disc"> -<LI>Windows�7</LI> -<P></P> -</UL> -<H4>Hardware Requirements </H4> -<P>The sample requires the following hardware: </P><B></B><UL type="disc"> -<LI>OSR FX2 test device</LI> -<P></P> -</UL> -<P></P> -<H4>Processor Requirements </H4> -<P>The sample runs on the following processor architectures: </P><B></B><UL type="disc"> -<LI>x86</LI> -<LI>x64</LI> -<LI>IA64</LI> -<P></P> -</UL> -<P></P> -<H4>Installation</H4> -<P>�The following files must be present in order to install this driver:</P> -<P>WudfBioUsbSample.dll</P> -<P>WudfBioUsbSample.inf</P> -<P>EngineAdapter.dll (built from adapter sample)</P> -<P>This sample installs on the OSR FX2 test device. It will not capture real data, but it will create a Biometric Unit in the Windows Biometric Framework.</P> -<P>TBD – Links to the test driver suite should go here.</P> -<H4>Code Tour</H4> -<P><b>File Manifest</b></P><B></B><table> -<TR valign="top"> -<TH Width="" style="background-color:#CCCCCC;">File</TH> -<TH Width="" style="background-color:#CCCCCC;">Description</TH> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">BioUsbSample.ctl</TD> -<TD Width="" style="background-color:#FFFFFF;">Contains the trace guid for the driver</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">BioUsbSample.rc</TD> -<TD Width="" style="background-color:#FFFFFF;">File name and description resources</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">Device.cpp</TD> -<TD Width="" style="background-color:#FFFFFF;">Implements the CBiometricDevice class, which has methods to interface with the WinUsb I/O target and methods that implement the WBDI IOCTLs</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">Device.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Contains type definitions for the device, including CBiometricDevice class</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">dllsup.cpp</TD> -<TD Width="" style="background-color:#FFFFFF;">Implements the driver DLL entry points</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">Driver.cpp</TD> -<TD Width="" style="background-color:#FFFFFF;">Implements the CBiometricDriver class</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">Driver.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Defines CBiometricDriver class</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">exports.def</TD> -<TD Width="" style="background-color:#FFFFFF;">Defines DLL exports</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">internal.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Pre-compiled header containing all common headers and type definitions</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">IoQueue.cpp</TD> -<TD Width="" style="background-color:#FFFFFF;">Implements CBiometricIoQueue, a parallel queue for processing IOCTLs</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">IoQueue.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Defines CBiometricIoQueue</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">Makefile</TD> -<TD Width="" style="background-color:#FFFFFF;">Build file</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">makefile.inc</TD> -<TD Width="" style="background-color:#FFFFFF;">Build file</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">RequestHelper.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Defines and implements a helper class that ensures a request is completed correctly upon exit</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">resource.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Resource definitions</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">Sources</TD> -<TD Width="" style="background-color:#FFFFFF;"></TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">WudfBioUsbSample.inx</TD> -<TD Width="" style="background-color:#FFFFFF;">Unprocessed INF file, which is generated at build time</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">inc\list.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Implements a doubly linked list</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">inc\public.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Definitions for OSR_FX2 device operations.</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">inc\usb_hw.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Defines prototypes for interfacing with a USB connected device</TD> -</TR> -<TR valign="top"> -<TD Width="" style="background-color:#FFFFFF;">WUDFOsrUsbPublic.h</TD> -<TD Width="" style="background-color:#FFFFFF;">Defines the public interface GUID for the OSR_FX2 device</TD> -</TR> -</table> -<P></P> -<P></P> -<P></P> -<DIV CLASS="footer"><br><A HREF="DDKLegal.htm">��2008�Microsoft Corporation</A><br><A HREF="mailto:[email protected]?subject=WDK Topic Feedback&body=Build date: November 17, 2008 Help file: Biometric_s - Topic title: Windows Biometric Driver Interface (WBDI) Sample">Send feedback on this topic</A><br>Built on�November 17, 2008<br></DIV> -<DIV style="visibility:hidden">Build machine: CAPEBUILD</DIV> -</Body> -</HTML> diff --git a/hid/hidusbfx2/readme.htm b/hid/hidusbfx2/readme.htm deleted file mode 100644 index 116fb5b3..00000000 --- a/hid/hidusbfx2/readme.htm +++ /dev/null @@ -1,1797 +0,0 @@ -<html xmlns:v="urn:schemas-microsoft-com:vml" -xmlns:o="urn:schemas-microsoft-com:office:office" -xmlns:w="urn:schemas-microsoft-com:office:word" -xmlns:x="urn:schemas-microsoft-com:office:excel" -xmlns:p="urn:schemas-microsoft-com:office:powerpoint" -xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" -xmlns:oa="urn:schemas-microsoft-com:office:activation" -xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" -xmlns:ds="http://www.w3.org/2000/09/xmldsig#" -xmlns:xsd="http://www.w3.org/2001/XMLSchema" -xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" -xmlns="http://www.w3.org/TR/REC-html40"> - -<head> -<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> -<meta name=ProgId content=Word.Document> -<meta name=Generator content="Microsoft Word 14"> -<meta name=Originator content="Microsoft Word 14"> -<link rel=File-List href="README_files/filelist.xml"> -<title>HID USB FX2 Sample</title> -<link rel=themeData href="README_files/themedata.thmx"> -<link rel=colorSchemeMapping href="README_files/colorschememapping.xml"> -<!--[if gte mso 9]><xml> - <w:WordDocument> - <w:Zoom>117</w:Zoom> - <w:TrackMoves>false</w:TrackMoves> - <w:TrackFormatting/> - <w:ValidateAgainstSchemas/> - <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> - <w:IgnoreMixedContent>false</w:IgnoreMixedContent> - <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> - <w:DoNotPromoteQF/> - <w:LidThemeOther>EN-US</w:LidThemeOther> - <w:LidThemeAsian>X-NONE</w:LidThemeAsian> - <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> - <w:Compatibility> - <w:BreakWrappedTables/> - <w:SnapToGridInCell/> - <w:WrapTextWithPunct/> - <w:UseAsianBreakRules/> - <w:DontGrowAutofit/> - <w:SplitPgBreakAndParaMark/> - <w:DontVertAlignCellWithSp/> - <w:DontBreakConstrainedForcedTables/> - <w:DontVertAlignInTxbx/> - <w:Word11KerningPairs/> - <w:CachedColBalance/> - </w:Compatibility> - <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> - <m:mathPr> - <m:mathFont m:val="Cambria Math"/> - <m:brkBin m:val="before"/> - <m:brkBinSub m:val="--"/> - <m:smallFrac m:val="off"/> - <m:dispDef/> - <m:lMargin m:val="0"/> - <m:rMargin m:val="0"/> - <m:defJc m:val="centerGroup"/> - <m:wrapIndent m:val="1440"/> - <m:intLim m:val="subSup"/> - <m:naryLim m:val="undOvr"/> - </m:mathPr></w:WordDocument> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false" - DefSemiHidden="false" DefQFormat="false" LatentStyleCount="267"> - <w:LsdException Locked="false" QFormat="true" Name="Normal"/> - <w:LsdException Locked="false" QFormat="true" Name="heading 1"/> - <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" - QFormat="true" Name="heading 2"/> - <w:LsdException Locked="false" Priority="9" SemiHidden="true" - UnhideWhenUsed="true" QFormat="true" Name="heading 3"/> - <w:LsdException Locked="false" Priority="9" SemiHidden="true" - UnhideWhenUsed="true" QFormat="true" Name="heading 4"/> - <w:LsdException Locked="false" Priority="9" SemiHidden="true" - UnhideWhenUsed="true" QFormat="true" Name="heading 5"/> - <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" - QFormat="true" Name="heading 6"/> - <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" - QFormat="true" Name="heading 7"/> - <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" - QFormat="true" Name="heading 8"/> - <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" - QFormat="true" Name="heading 9"/> - <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" - QFormat="true" Name="caption"/> - <w:LsdException Locked="false" QFormat="true" Name="Title"/> - <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> - <w:LsdException Locked="false" QFormat="true" Name="Subtitle"/> - <w:LsdException Locked="false" QFormat="true" Name="Strong"/> - <w:LsdException Locked="false" QFormat="true" Name="Emphasis"/> - <w:LsdException Locked="false" Priority="99" Name="Normal (Web)"/> - <w:LsdException Locked="false" Priority="99" Name="HTML Preformatted"/> - <w:LsdException Locked="false" Priority="99" Name="No List"/> - <w:LsdException Locked="false" Priority="99" SemiHidden="true" - Name="Placeholder Text"/> - <w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading"/> - <w:LsdException Locked="false" Priority="61" Name="Light List"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/> - <w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/> - <w:LsdException Locked="false" Priority="99" SemiHidden="true" Name="Revision"/> - <w:LsdException Locked="false" Priority="34" QFormat="true" - Name="List Paragraph"/> - <w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/> - <w:LsdException Locked="false" Priority="30" QFormat="true" - Name="Intense Quote"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/> - <w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/> - <w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/> - <w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/> - <w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/> - <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/> - <w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/> - <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/> - <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/> - <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/> - <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/> - <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/> - <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/> - <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/> - <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/> - <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/> - <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/> - <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/> - <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/> - <w:LsdException Locked="false" Priority="19" QFormat="true" - Name="Subtle Emphasis"/> - <w:LsdException Locked="false" Priority="21" QFormat="true" - Name="Intense Emphasis"/> - <w:LsdException Locked="false" Priority="31" QFormat="true" - Name="Subtle Reference"/> - <w:LsdException Locked="false" Priority="32" QFormat="true" - Name="Intense Reference"/> - <w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/> - <w:LsdException Locked="false" Priority="37" SemiHidden="true" - UnhideWhenUsed="true" Name="Bibliography"/> - <w:LsdException Locked="false" Priority="39" SemiHidden="true" - UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/> - </w:LatentStyles> -</xml><![endif]--> -<style> -<!-- - /* Font Definitions */ - @font-face - {font-family:Courier; - panose-1:2 7 4 9 2 2 5 2 4 4; - mso-font-alt:"Courier New"; - mso-font-charset:0; - mso-generic-font-family:modern; - mso-font-format:other; - mso-font-pitch:fixed; - mso-font-signature:3 0 0 0 1 0;} -@font-face - {font-family:"MS Mincho"; - panose-1:2 2 6 9 4 2 5 8 3 4; - mso-font-alt:"\FF2D\FF33 \660E\671D"; - mso-font-charset:128; - mso-generic-font-family:modern; - mso-font-pitch:fixed; - mso-font-signature:-536870145 1791491579 18 0 131231 0;} -@font-face - {font-family:"MS Mincho"; - panose-1:2 2 6 9 4 2 5 8 3 4; - mso-font-alt:"\FF2D\FF33 \660E\671D"; - mso-font-charset:128; - mso-generic-font-family:modern; - mso-font-pitch:fixed; - mso-font-signature:-536870145 1791491579 18 0 131231 0;} -@font-face - {font-family:"\@MS Mincho"; - panose-1:2 2 6 9 4 2 5 8 3 4; - mso-font-charset:128; - mso-generic-font-family:modern; - mso-font-pitch:fixed; - mso-font-signature:-536870145 1791491579 18 0 131231 0;} -@font-face - {font-family:Verdana; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:-1593833729 1073750107 16 0 415 0;} - /* Style Definitions */ - p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-unhide:no; - mso-style-qformat:yes; - mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman","serif"; - mso-fareast-font-family:"Times New Roman";} -h3 - {mso-style-noshow:yes; - mso-style-priority:9; - mso-style-qformat:yes; - mso-style-link:"Heading 3 Char"; - mso-margin-top-alt:auto; - margin-right:0in; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - mso-outline-level:3; - font-size:13.5pt; - font-family:"Times New Roman","serif"; - mso-fareast-font-family:"Times New Roman"; - mso-fareast-theme-font:minor-fareast; - color:black; - font-weight:bold;} -h4 - {mso-style-noshow:yes; - mso-style-priority:9; - mso-style-qformat:yes; - mso-style-link:"Heading 4 Char"; - mso-margin-top-alt:auto; - margin-right:0in; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - mso-outline-level:4; - font-size:12.0pt; - font-family:"Times New Roman","serif"; - mso-fareast-font-family:"Times New Roman"; - mso-fareast-theme-font:minor-fareast; - color:black; - font-weight:bold;} -h5 - {mso-style-noshow:yes; - mso-style-priority:9; - mso-style-qformat:yes; - mso-style-link:"Heading 5 Char"; - mso-margin-top-alt:auto; - margin-right:0in; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - mso-outline-level:5; - font-size:10.0pt; - font-family:"Times New Roman","serif"; - mso-fareast-font-family:"Times New Roman"; - mso-fareast-theme-font:minor-fareast; - color:black; - font-weight:bold;} -a:link, span.MsoHyperlink - {mso-style-unhide:no; - color:blue; - text-decoration:underline; - text-underline:single;} -a:visited, span.MsoHyperlinkFollowed - {mso-style-unhide:no; - color:purple; - text-decoration:underline; - text-underline:single;} -p - {mso-style-priority:99; - mso-style-unhide:no; - mso-margin-top-alt:auto; - margin-right:0in; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman","serif"; - mso-fareast-font-family:"Times New Roman";} -pre - {mso-style-priority:99; - mso-style-unhide:no; - mso-style-link:"HTML Preformatted Char"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; - font-size:10.0pt; - font-family:"Courier New"; - mso-fareast-font-family:"MS Mincho"; - color:black;} -span.Heading3Char - {mso-style-name:"Heading 3 Char"; - mso-style-noshow:yes; - mso-style-priority:9; - mso-style-unhide:no; - mso-style-locked:yes; - mso-style-link:"Heading 3"; - mso-ansi-font-size:13.5pt; - mso-bidi-font-size:13.5pt; - color:black; - font-weight:bold;} -span.Heading4Char - {mso-style-name:"Heading 4 Char"; - mso-style-noshow:yes; - mso-style-priority:9; - mso-style-unhide:no; - mso-style-locked:yes; - mso-style-link:"Heading 4"; - mso-ansi-font-size:12.0pt; - mso-bidi-font-size:12.0pt; - color:black; - font-weight:bold;} -span.Heading5Char - {mso-style-name:"Heading 5 Char"; - mso-style-noshow:yes; - mso-style-priority:9; - mso-style-unhide:no; - mso-style-locked:yes; - mso-style-link:"Heading 5"; - color:black; - font-weight:bold;} -span.HTMLPreformattedChar - {mso-style-name:"HTML Preformatted Char"; - mso-style-priority:99; - mso-style-unhide:no; - mso-style-locked:yes; - mso-style-link:"HTML Preformatted"; - font-family:"Courier New"; - mso-ascii-font-family:"Courier New"; - mso-fareast-font-family:"MS Mincho"; - mso-hansi-font-family:"Courier New"; - mso-bidi-font-family:"Courier New"; - color:black;} -span.xdrichtextboxxdbehaviorghostedtextctrl59ms-xedit-plaintext - {mso-style-name:"xdrichtextbox xdbehavior_ghostedtext ctrl59 ms-xedit-plaintext"; - mso-style-unhide:no;} -.MsoChpDefault - {mso-style-type:export-only; - mso-default-props:yes; - font-size:10.0pt; - mso-ansi-font-size:10.0pt; - mso-bidi-font-size:10.0pt;} -@page WordSection1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.WordSection1 - {page:WordSection1;} - /* List Definitions */ - @list l0 - {mso-list-id:281688247; - mso-list-template-ids:712930216;} -@list l0:level1 - {mso-level-tab-stop:.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level2 - {mso-level-tab-stop:1.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level3 - {mso-level-tab-stop:1.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level4 - {mso-level-tab-stop:2.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level5 - {mso-level-tab-stop:2.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level6 - {mso-level-tab-stop:3.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level7 - {mso-level-tab-stop:3.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level8 - {mso-level-tab-stop:4.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l0:level9 - {mso-level-tab-stop:4.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1 - {mso-list-id:503010352; - mso-list-template-ids:394949212;} -@list l1:level1 - {mso-level-number-format:bullet; - mso-level-text:\F0B7; - mso-level-tab-stop:.5in; - mso-level-number-position:left; - text-indent:-.25in; - mso-ansi-font-size:10.0pt; - font-family:Symbol;} -@list l1:level2 - {mso-level-tab-stop:1.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level3 - {mso-level-tab-stop:1.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level4 - {mso-level-tab-stop:2.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level5 - {mso-level-tab-stop:2.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level6 - {mso-level-tab-stop:3.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level7 - {mso-level-tab-stop:3.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level8 - {mso-level-tab-stop:4.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l1:level9 - {mso-level-tab-stop:4.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2 - {mso-list-id:1947537651; - mso-list-template-ids:-173633068;} -@list l2:level1 - {mso-level-tab-stop:.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level2 - {mso-level-number-format:bullet; - mso-level-text:\F0B7; - mso-level-tab-stop:1.0in; - mso-level-number-position:left; - text-indent:-.25in; - mso-ansi-font-size:10.0pt; - font-family:Symbol;} -@list l2:level3 - {mso-level-number-format:alpha-lower; - mso-level-tab-stop:1.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level4 - {mso-level-tab-stop:2.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level5 - {mso-level-tab-stop:2.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level6 - {mso-level-tab-stop:3.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level7 - {mso-level-tab-stop:3.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level8 - {mso-level-tab-stop:4.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l2:level9 - {mso-level-tab-stop:4.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3 - {mso-list-id:2014532694; - mso-list-template-ids:992148534;} -@list l3:level1 - {mso-level-number-format:bullet; - mso-level-text:\F0B7; - mso-level-tab-stop:.5in; - mso-level-number-position:left; - text-indent:-.25in; - mso-ansi-font-size:10.0pt; - font-family:Symbol;} -@list l3:level2 - {mso-level-tab-stop:1.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level3 - {mso-level-tab-stop:1.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level4 - {mso-level-tab-stop:2.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level5 - {mso-level-tab-stop:2.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level6 - {mso-level-tab-stop:3.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level7 - {mso-level-tab-stop:3.5in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level8 - {mso-level-tab-stop:4.0in; - mso-level-number-position:left; - text-indent:-.25in;} -@list l3:level9 - {mso-level-tab-stop:4.5in; - mso-level-number-position:left; - text-indent:-.25in;} -ol - {margin-bottom:0in;} -ul - {margin-bottom:0in;} ---> -</style> -<!--[if gte mso 10]> -<style> - /* Style Definitions */ - table.MsoNormalTable - {mso-style-name:"Table Normal"; - mso-tstyle-rowband-size:0; - mso-tstyle-colband-size:0; - mso-style-noshow:yes; - mso-style-priority:99; - mso-style-parent:""; - mso-padding-alt:0in 5.4pt 0in 5.4pt; - mso-para-margin:0in; - mso-para-margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:10.0pt; - font-family:"Times New Roman","serif";} -</style> -<![endif]--><!--[if gte mso 9]><xml> - <o:shapedefaults v:ext="edit" spidmax="1026"/> -</xml><![endif]--><!--[if gte mso 9]><xml> - <o:shapelayout v:ext="edit"> - <o:idmap v:ext="edit" data="1"/> - </o:shapelayout></xml><![endif]--> -</head> - -<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'> - -<div class=WordSection1> - -<p class=MsoNormal><b><span style='font-size:16.0pt;font-family:"Verdana","sans-serif"'>HIDUSBFX2</span></b></p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><b><span style='font-size:14.0pt;font-family:"Verdana","sans-serif"'>Summary</span></b></p> - -<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -HIDUSBFX2 sample demonstrates how to write a HID minidriver by using the -Microsoft Windows Driver Foundation (WDF). The sample also demonstrates how to map -a non-HID USB device to a HID device. The minidriver is written for the OSR -USB-FX2 Learning Kit. This device is not HID-compliant and the sample exposes -the device as a HID device.<o:p></o:p></span></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Background -Information</span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>A -HID USB device provides a HID descriptor (through an interface descriptor) that -identifies the device as HID-compliant and enables the system-supplied HID -minidriver (</span><i><span style='font-size:10.0pt'>hidusb.sys</span></i><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>) and the HID class -driver to load, parse the HID descriptor, and enumerate child HID -device stacks. The system provides strong support for HID devices, so you do -not typically have to write a HID minidriver. However, there are cases in -which you might need to write your own HID minidriver (for example, if it is -difficult to make desired changes to HID-compliant device firmware or if you -need to make a non-HID compliant device a HID device without updating the -firmware).<o:p></o:p></span></p> - -<p><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Overview -of the Device</span></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>You -can view the specification for the device in the </span><span -class=MsoHyperlink><b><span style='font-size:10.0pt'><a -href="http://www.osronline.com/hardware/OSRFX2_32.pdf"><span style='font-family: -"Verdana","sans-serif"'>Using the OSR USB FX-2 Learning Kit</span></a></span></b></span><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> document.<o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -device is loosely based on the development board that is supplied with the -Cypress EZ-USB FX2 Development Kit (CY3681) and contains one interface -and three endpoints (Interrupt IN, Bulk Out, and Bulk IN). The firmware supports -vendor commands to query or set the LED bar graph display, 7-segment LED -display, and query toggle switch states.<o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -interrupt endpoint sends an 8-bit value that represents the state of the -switches. This value is sent on startup, resume from suspend, and whenever the -switch pack setting changes. The firmware does not de-bounce the switch pack. -One switch change can cause multiple bytes to be sent. The bits are in the -reverse order of the labels on the pack (for example, bit 0x80 is labeled -1 on the pack). Bulk endpoints are configured for loopback. <o:p></o:p></span></p> - -<p><a name="OLE_LINK4"></a><a name="OLE_LINK3"><span style='mso-bookmark:OLE_LINK4'><b><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Overview of the -Driver Stack<o:p></o:p></span></b></span></a></p> - -<span style='mso-bookmark:OLE_LINK4'></span><span style='mso-bookmark:OLE_LINK3'></span> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Kernel-Mode -Driver Framework (KMDF) does not support HID minidrivers natively because -the HID architecture requires that the HID class driver (</span><i><span -style='font-size:10.0pt'>hidclass.sys</span></i><span style='font-size:10.0pt; -font-family:"Verdana","sans-serif"'>) own the driver dispatch table for -HID minidrivers. This requirement conflicts with KMDF�s -requirement that it own the driver dispatch table in order to handle -Plug and Play (PnP), power, and I/O requests correctly. <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>You -can resolve this ownership conflict by using a driver stack that consists of a -minimal WDM driver (also called a shim driver) as function driver and a -complete KMDF driver as lower filter driver. The shim driver registers with the -HID class (so </span><i><span style='font-size:10.0pt'>hidclass.sys </span></i><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>owns its dispatch -table) and forwards all of the requests to the lower filter driver. The -lower filter driver (KMDF owns the dispatch table) processes all of the -requests. <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -WDK provides code for both of the drivers. The shim driver code is located -in the src\hid\hidmapper\kmdf folder (the driver binary is named </span><i><span -style='font-size:10.0pt'>hidkmdf.sys</span></i><span style='font-size:10.0pt; -font-family:"Verdana","sans-serif"'>), and the lower filter driver code is -located in the src\hid\hidusbfx2\sys folder (the binary is named </span><i><span -style='font-size:10.0pt'>hidusbfx2.sys</span></i><span style='font-size:10.0pt; -font-family:"Verdana","sans-serif"'>). The shim driver is a minimal WDM driver -and you can reuse it without any modification. Remember to rename the -shim driver binary when you reuse it, to avoid a name conflict. Also, note that -shim driver is an inbox driver on Windows 7 and later operating systems (</span><i><span -style='font-size:10.0pt'>mshidkmdf.sys</span></i><span style='font-size:10.0pt; -font-family:"Verdana","sans-serif"'>). INF file for this sample contains a -specific section that allows using the inbox shim driver on Windows 7 and later -OS.<o:p></o:p></span></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Mapping -non-HID USB device to HID</span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>When the -HID class driver queries the minidriver, the minidriver returns a hard-coded -report descriptor that enables the HID class driver to create child -devices as described by the report descriptor. The report descriptor -has three top-level application collections: <o:p></o:p></span></p> - -<ul type=disc> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l3 level1 lfo1;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Consumer Control<o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l3 level1 lfo1;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>System Control<o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l3 level1 lfo1;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Vendor-defined<o:p></o:p></span></li> -</ul> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -HID class driver creates a driver stack for each top-level collection. The operating -system opens the Consumer Control and System Control collections. These -collections have input buttons and obtain data from the interrupt endpoint of -the USB device. The vendor-defined collection exposes a feature button to -control the 7-segment display and bar graph display. Any client application can -open the vendor-defined collection to send feature requests.<o:p></o:p></span></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Switch -Pack Mapping</span></b></p> - -<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -switch pack on the USB device is mapped as hot keys that are commonly found on -modern keyboards. This mapping is possible by exposing the switch pack as -two system-supported collections: Consumer Control and System Control. The -Consumer Control collection provides a mapping for some application-launch and -application-action keys, as shown in the following table. The System -Control collection provides a mapping for the power sleep function. <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p> - -<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 - style='border-collapse:collapse;mso-yfti-tbllook:1184;mso-padding-alt:0in 0in 0in 0in'> - <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'> - <td width=67 valign=top style='width:.7in;border:none;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Switch</span></b></p> - </td> - <td width=60 valign=top style='width:45.0pt;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>1</span></p> - </td> - <td width=72 valign=top style='width:.75in;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>2</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>3</span></p> - </td> - <td width=72 valign=top style='width:.75in;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>4</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>5</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>6</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>7</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border:solid windowtext 2.25pt; - border-left:none;background:#A0A0A0;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Arial","sans-serif"'>8</span></p> - </td> - </tr> - <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'> - <td width=67 valign=top style='width:.7in;border:none;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Mapping</span></b></p> - </td> - <td width=60 valign=top style='width:45.0pt;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Sleep</span></p> - </td> - <td width=72 valign=top style='width:.75in;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Calculator</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Mail</span></p> - </td> - <td width=72 valign=top style='width:.75in;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Favorites</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Refresh</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Forward</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Back</span></p> - </td> - <td width=60 valign=top style='width:45.0pt;border-top:none;border-left:none; - border-bottom:solid windowtext 2.25pt;border-right:solid windowtext 2.25pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Browser</span></p> - </td> - </tr> -</table> - -<p class=MsoNormal><b><span style='font-family:"Arial","sans-serif"'> </span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Segment -Display and Bar Graph Mapping</span></b></p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Segment -display and Bar Graph are mapped as HID feature controls that can be -manipulated by using HidD_SetFeature() api from a user mode application. The -feature controls are mapped as Vendor-defined Usage Page 0xff00 with Usage ID -from 1 to 18. Hidclient.exe, a GUI application available in WDK, can also be -used to do this. See following sections for more information.<o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -segment display and bar graph are mapped as HID feature controls that you -can manipulate by using the </span><b><span style='font-size:10.0pt'>HidD_SetFeature</span></b><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> function from a user-mode -application. The feature controls are mapped as vendor-defined usage page -0xff00 with a usage ID from 1-18. You can also use </span><i><span -style='font-size:10.0pt'>Hidclient.exe</span></i><span style='font-size:10.0pt; -font-family:"Verdana","sans-serif"'>, an application that is available in the -WDK, to <a name="OLE_LINK2"></a><a name="OLE_LINK1"><span style='mso-bookmark: -OLE_LINK2'>manipulate </span></a>the segment display and bar graph. For more -information about this mapping, see the following two tables.<o:p></o:p></span></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></b></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Segment Display -Mapping</span><o:p></o:p></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 - style='border-collapse:collapse;mso-yfti-tbllook:1184;mso-padding-alt:0in 0in 0in 0in'> - <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'> - <td width=84 valign=top style='width:63.0pt;border:none;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Usage - ID</span></b></p> - </td> - <td width=66 valign=top style='width:49.8pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>1</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>2</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>3</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>4</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>5</span></p> - </td> - <td width=72 valign=top style='width:.75in;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>6</span></p> - </td> - <td width=72 valign=top style='width:.75in;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>7</span></p> - </td> - <td width=72 valign=top style='width:.75in;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>8</span></p> - </td> - </tr> - <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'> - <td width=84 valign=top style='width:63.0pt;border:none;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Mapping</span></b></p> - </td> - <td width=66 valign=top style='width:49.8pt;border-top:none;border-left:none; - border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 1</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 2</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 3</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 4</span></p> - </td> - <td width=61 valign=top style='width:46.05pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 5</span></p> - </td> - <td width=72 valign=top style='width:.75in;border-top:none;border-left:none; - border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 6</span></p> - </td> - <td width=72 valign=top style='width:.75in;border-top:none;border-left:none; - border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 7</span></p> - </td> - <td width=72 valign=top style='width:.75in;border-top:none;border-left:none; - border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Display 8</span></p> - </td> - </tr> -</table> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Bar Graph Mapping</span><o:p></o:p></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=696 - style='width:7.25in;border-collapse:collapse;mso-yfti-tbllook:1184;mso-padding-alt: - 0in 0in 0in 0in'> - <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'> - <td width=84 valign=top style='width:63.0pt;border:none;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Usage - ID</span></b></p> - </td> - <td width=54 valign=top style='width:40.85pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>9</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>10</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>11</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>12</span></p> - </td> - <td width=59 valign=top style='width:44.5pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>13</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>14</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>15</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>16</span></p> - </td> - <td width=71 valign=top style='width:52.95pt;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>17</span></p> - </td> - <td width=72 valign=top style='width:.75in;border:solid windowtext 1.0pt; - border-left:none;padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>18</span></p> - </td> - </tr> - <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'> - <td width=84 valign=top style='width:63.0pt;border:none;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> Mapping</span></b></p> - </td> - <td width=54 valign=top style='width:40.85pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 1 ON</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 2</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 3</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 4</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=59 valign=top style='width:44.5pt;border-top:none;border-left:none; - border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 5</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 6</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 7</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=59 valign=top style='width:44.45pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>LED 8</span></p> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>ON</span></p> - </td> - <td width=71 valign=top style='width:52.95pt;border-top:none;border-left: - none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>All LEDS ON</span></p> - </td> - <td width=72 valign=top style='width:.75in;border-top:none;border-left:none; - border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; - padding:0in 5.4pt 0in 5.4pt'> - <p class=MsoNormal align=center style='text-align:center'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>All LEDS OFF</span></p> - </td> - </tr> -</table> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Support -for Selective Suspend</span></b></p> - -<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The -HID class driver provides support for selective suspend. The minidriver -participates in this feature by handling HID class IOCTLs appropriately. To -enable the selective suspend feature for your device, you need to add a -�SelectiveSuspend� = 1 value in the registry in the device hardware key through -the INF file. For an example, see the </span><i><span style='font-size:10.0pt'>hidusbfx2.inf</span></i><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> file.<o:p></o:p></span></p> - -<p class=MsoNormal> </p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'>Installing -the Sample</span></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>If -you adapt this driver for your device, update the INF file to match the hardware -ID (VID, PID) and the device description text to match your test board/device. <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>To -start installing the sample, you must:<o:p></o:p></span></p> - -<ol start=1 type=1 xmlns="http://www.w3.org/1999/xhtml"> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l2 level1 lfo2;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Build the driver and copy the - following files to a folder on your hard drive: <o:p></o:p></span></li> - <ul type=disc> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><em><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>hidusbfx2.inf - </span></em><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><em><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hidusbfx2.sys - </span></em><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><em><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hidkmdf.sys - (build <WDK ROOT>/src/hid/hidmapper/kmdf folder for this)</span></em><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>The WDF - coinstaller from the <em><span style='font-family:"Verdana","sans-serif"'><WDK - ROOT>\redist\wdf\<platform></span></em> folder.<o:p></o:p></span></li> - </ul> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l2 level1 lfo2;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Plug in the device and do the - following, depending on the operating system that you are using:<o:p></o:p></span></li> - <ul type=disc> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>On Windows 7 - and later operating systems: <o:p></o:p></span></li> - <ol start=1 type=a> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Launch <b - style='mso-bidi-font-weight:normal'>Device Manager</b> by executing - command devmgmt.msc in a command window, or from <strong><span - style='font-family:"Verdana","sans-serif"'>Hardware and Sound </span></strong><strong><span - style='font-family:"Verdana","sans-serif";font-weight:normal;mso-bidi-font-weight: - bold'>program</span></strong><strong><span style='font-family:"Verdana","sans-serif"'> - </span></strong><strong><span style='font-family:"Verdana","sans-serif"; - font-weight:normal;mso-bidi-font-weight:bold'>group</span></strong><strong><span - style='font-family:"Verdana","sans-serif"'> in Control Panel</span></strong>.<o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><strong><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif";font-weight: - normal'>Select </span></strong><strong><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif";mso-bidi-font-weight:normal'>OSR - USB-FX2</span></strong><strong><span style='font-size:10.0pt;font-family: - "Verdana","sans-serif";font-weight:normal'> device from </span></strong><strong><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif";mso-bidi-font-weight: - normal'>Other Devices</span></strong><strong><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif";font-weight:normal'> category - and click </span></strong><strong><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif";mso-bidi-font-weight:normal'>Update - Driver Software�</span></strong><strong><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif";font-weight:normal'> from right-click - menu.</span></strong><strong><span style='font-weight:normal'><o:p></o:p></span></strong></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><strong><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif";font-weight: - normal'>Select Browse my computer for software and provide the location - of the driver files.<o:p></o:p></span></strong></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>Install this driver software - anyway </span></strong>when the <strong><span style='font-family:"Verdana","sans-serif"'>Windows - Security </span></strong>dialog box appears.<strong><span - style='font-family:"Verdana","sans-serif";font-weight:normal'><o:p></o:p></span></strong></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>After the - driver is installed, you should see the device in Device Manager under - "Human Interface Devices". </span></li> - </ol> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>On Windows - Vista and Windows Server 2008: <o:p></o:p></span></li> - <ol start=1 type=a> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>In the <strong><span - style='font-family:"Verdana","sans-serif"'>Found New Hardware </span></strong>dialog - box, select <strong><span style='font-family:"Verdana","sans-serif"'>Locate - and install driver software (recommended)</span></strong>. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>Don't search online</span></strong>. - <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>I don't have the disc. Show - me other options</span></strong>. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>Browse my computer for driver - software (advanced)</span></strong>. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Enter the - location of the driver files, and select <strong><span style='font-family: - "Verdana","sans-serif"'>Install this driver software anyway </span></strong>when - the <strong><span style='font-family:"Verdana","sans-serif"'>Windows - Security </span></strong>dialog box appears. After the driver is - installed, you should see the device in Device Manager under "Human - Interface Devices". <o:p></o:p></span></li> - </ol> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>On Windows - Server 2003 and Windows XP: <o:p></o:p></span></li> - <ol start=1 type=a> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>In the <strong><span - style='font-family:"Verdana","sans-serif"'>Found New Hardware Wizard </span></strong>dialog - box, select <strong><span style='font-family:"Verdana","sans-serif"'>Install - from a list of specific location (Advanced)</span></strong>. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>Search the best driver in - these locations</span></strong>, select <strong><span style='font-family: - "Verdana","sans-serif"'>Include this location in the search path</span></strong>, - and then specify the target media or the directory where the INF and SYS - files are copied. The system will scan the directory and pick up the - matching INF file and start the installation. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>When you - receive a <strong><span style='font-family:"Verdana","sans-serif"'>Hardware - Installation Warning </span></strong>dialog box that states that your - driver has not passed Windows Logo Testing, click <strong><span - style='font-family:"Verdana","sans-serif"'>Continue Anyway</span></strong>. - The system will copy the driver and INF file, load the driver, and start - the device. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>When you see - the <strong><span style='font-family:"Verdana","sans-serif"'>Completing the - Found New Hardware Wizard </span></strong>page, click <strong><span - style='font-family:"Verdana","sans-serif"'>Finish</span></strong>. The - installation is complete. You should be able to see the device in Device - Manager under "Human Interface Devices".<o:p></o:p></span></li> - </ol> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level2 lfo2;tab-stops:list 1.0in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>On Windows - 2000: <o:p></o:p></span></li> - <ol start=1 type=a> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>In the <strong><span - style='font-family:"Verdana","sans-serif"'>Found New Hardware Wizard</span></strong> - dialog box, click <strong><span style='font-family:"Verdana","sans-serif"'>Next</span></strong>. - <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>Display a list of known - drivers for this device</span></strong>, and then click <strong><span - style='font-family:"Verdana","sans-serif"'>Next</span></strong>. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Select <strong><span - style='font-family:"Verdana","sans-serif"'>Other Devices</span></strong>, - and then click <strong><span style='font-family:"Verdana","sans-serif"'>Next</span></strong>. - <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Click <strong><span - style='font-family:"Verdana","sans-serif"'>Have Disk</span></strong>, - specify the target media or the directory where the INF and SYS files - are copied, and then click <strong><span style='font-family:"Verdana","sans-serif"'>Okay</span></strong>. - <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>In the <strong><span - style='font-family:"Verdana","sans-serif"'>Manufacturer </span></strong>section, - select <strong><span style='font-family:"Verdana","sans-serif"'>Vendor - Name</span></strong><strong><span style='font-family:"Verdana","sans-serif"; - font-weight:normal'>,</span></strong> and the click <strong><span - style='font-family:"Verdana","sans-serif"'>Next</span></strong>. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt: - auto;mso-list:l2 level3 lfo2;tab-stops:list 1.5in'><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Click <strong><span - style='font-family:"Verdana","sans-serif"'>Next</span></strong>, and - then click <strong><span style='font-family:"Verdana","sans-serif"'>Finish - </span></strong>in the <strong><span style='font-family:"Verdana","sans-serif"'>Completing - the Add/Remove Hardware Wizard </span></strong>page.<o:p></o:p></span></li> - </ol> - </ul> -</ol> - -<p class=MsoNormal> <span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'>Testing</span></b></p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'> </span></b></p> - -<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Testing Switches<o:p></o:p></span></b></p> - -<ul type=disc xmlns="http://www.w3.org/1999/xhtml"> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l1 level1 lfo3;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Toggle switch number 8 on the device - board to the on position (toggle down) to open a Web browser. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l1 level1 lfo3;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Toggle switch number 2 on the device - board to the on position (toggle down) to start the calculator - application.<o:p></o:p></span></li> -</ul> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <o:p></o:p></span></p> - -<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Testing Bar Graph -and 7-Segment Display<o:p></o:p></span></b></p> - -<ol start=1 type=1 xmlns="http://www.w3.org/1999/xhtml"> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Start the </span><i><span - style='font-size:10.0pt'>hidclient.exe </span></i><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif"'>GUI application from the WDK. - The application source code is located in the </span><i><span - style='font-size:10.0pt'><WDK Root>\src\hid\hclient </span></i><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>folder, and - you need to build it by using the appropriate build environment. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>From the </span><b><span - style='font-size:10.0pt'>HID Device to examine </span></b><span - style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>menu, select - the device that contains �UsagePage 0ff00, Usage 01� as a substring. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Click </span><b><span - style='font-size:10.0pt'>Modify Features</span></b><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif"'>. The </span><b><span - style='font-size:10.0pt'>Feature Data</span></b><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif"'> dialog box opens. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Click </span><b><span - style='font-size:10.0pt'>Modify Features</span></b><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif"'>. The </span><b><span - style='font-size:10.0pt'>Modify features</span></b><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif"'> dialog box opens. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>In the input box, type </span><b><span - style='font-size:10.0pt'>7</span></b><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'> and click </span><b><span - style='font-size:10.0pt'>Send to Device</span></b><span style='font-size: - 10.0pt;font-family:"Verdana","sans-serif"'>. You should see number 7 - appear in the 7-segment display. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Type any number from 1-8, and you will - see the respective number displayed in the 7-segment display. <o:p></o:p></span></li> - <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; - mso-list:l0 level1 lfo4;tab-stops:list .5in'><span style='font-size:10.0pt; - font-family:"Verdana","sans-serif"'>Type any number from (and - including) 9-17, and you will see one of the LEDs on the bar graph turn - on. For mapping information, see the earlier table.<o:p></o:p></span></li> -</ol> - -<p class=MsoNormal> </p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'>Report -Descriptor</span></b></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -// Consumer control collection</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x05,0x0C, -// USAGE_PAGE (Consumer Page)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x09,0x01, -// USAGE (Consumer Control Usage 0x01)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xA1,0x01, -// COLLECTION (Application)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x85,0x01, -// REPORT_ID </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x23, 0x02, // USAGE (Usage Browser)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x24, 0x02, // USAGE (Usage AC Back)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x25, 0x02, // USAGE (Usage AC Forward)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x27, 0x02, // USAGE (Usage AC Refresh)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x2A, 0x02, // USAGE (Usage AC BookMarks)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x8A, 0x01, // USAGE (Usage AL Mail)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x0A, 0x92, 0x01, // USAGE (Usage AL Calculator )</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x15, 0x00, -// LOGICAL_MINIMUM(0)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x25, 0x01, -// LOGICAL_MAXIMUM(1) </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x75, 0x01, -// REPORT_SIZE </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x95, 0x07, -// REPORT_COUNT </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x81, 0x02, -// INPUT (Data, Variable,Abs)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x75, 0x01, -// REPORT_SIZE </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x95, 0x01, -// REPORT_COUNT</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x81, 0x07, -// INPUT (const)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xC0, -// END_COLLECTION</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -// system control collection</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x05, 0x01, - // Usage Page (Generic Desktop)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x09, 0x80, - // Usage (System Control)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xA1, 0x01, // -Collection (Application)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x85, 0x02, - // Report ID </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x95, 0x07, - // Report Count </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x81, 0x07, - // Input (Constant) </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x09, 0x82, - // Usage (System Sleep)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x95, 0x01, - // Report Count (2)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x81, 0x06, -// Input (Data, Variable, Relative, Preferred)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xC0, -// End Collection</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -// Feature collection</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x06,0x00, 0xFF, // USAGE_PAGE (Vender Defined Usage Page)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x09,0x01, // -USAGE (Vendor Usage 0x01)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xA1,0x01, // -COLLECTION (Application)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x85,0x03, // -Report ID </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x19,0x01, - // USAGE MINIMUM </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x29,0x20, - // USAGE MAXIMUM </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x15,0x00, - // LOGICAL_MINIMUM(1)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x26,0xff, 0x00, // LOGICAL_MAXIMUM(255)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x75,0x08, - // REPORT_SIZE </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0x95,0x01, - // REPORT_COUNT </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xB1,0x00, - // Feature (Data,Ary,Abs)</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> -0xC0 -// END_COLLECTION</span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> </span></p> - -<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p> - -<p class=MsoNormal><b><span style='font-family:"Verdana","sans-serif"'>CODE -TOUR</span></b><span style='font-family:"Verdana","sans-serif"'><o:p></o:p></span></p> - -<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif";mso-fareast-font-family: -"MS Mincho";color:black'>This section includes a file manifest of all the files -in the <i>src\hid\hidusbfx2</i> directory and src\hid\hidmapper\kmdf directory..<o:p></o:p></span></p> - -<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif";mso-fareast-font-family: -"MS Mincho";color:black'><o:p> </o:p></span></p> - -<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; -mso-outline-level:4'><b><span style='font-family:"Verdana","sans-serif"; -color:black'>File Manifest<o:p></o:p></span></b></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><i><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif";mso-fareast-font-family: -"MS Mincho";color:black'>src\hid\hidmapper\kmdf<o:p></o:p></span></i></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'><o:p> </o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><u><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Files Description</span></u><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'><o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>hidkmdf.c Contains code for -driver entry and dispatch.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Sources WDK sources file.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Makefile WDK build environment -makefile.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>hidkmdf.rc Resource file for -the driver.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><i><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif";mso-fareast-font-family: -"MS Mincho";color:black'><o:p> </o:p></span></i></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><i><span -style='font-size:10.0pt;font-family:"Verdana","sans-serif";mso-fareast-font-family: -"MS Mincho";color:black'>src\hid\hidusbfx2\sys<o:p></o:p></span></i></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'><o:p> </o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><u><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Files<span -style='mso-spacerun:yes'>����������� </span>Description</span></u><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'><o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Driver.c<span -style='mso-spacerun:yes'>�������� </span>Contains code for driver entry and -dispatch functions.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>hid.c<span -style='mso-spacerun:yes'>����������� </span>Contains code for handling HID -ioctls.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>usb.c<span -style='mso-spacerun:yes'>����������� </span>Contains code for communicating -with USB stack.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Trace.h<span -style='mso-spacerun:yes'>��������� </span>Contains trace related definitions.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Hidusbfx2.h<span -style='mso-spacerun:yes'>����� </span>Contains type definitions and function -declarations<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Hidusbfx2.rc<span -style='mso-spacerun:yes'>���� </span>Resource file for the driver.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Hidusbfx2.inx<span -style='mso-spacerun:yes'>��� </span>INX file for the driver.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Sources<span -style='mso-spacerun:yes'>��������� </span>WDK sources file.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Makefile<span -style='mso-spacerun:yes'>�������� </span>WDK build environment make file.<o:p></o:p></span></p> - -<p class=MsoNormal style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span -style='font-size:10.0pt;font-family:Courier;mso-fareast-font-family:"MS Mincho"; -mso-bidi-font-family:"Courier New";color:black'>Makefile.inc<span -style='mso-spacerun:yes'>���� </span>A makefile that defines custom build -actions. This includes the conversion of the .INX file into a .INF file.<o:p></o:p></span></p> - -<p class=MsoNormal><o:p> </o:p></p> - -</div> - -</body> - -</html> diff --git a/setup/DIFxAPI/AppDrv/readme.htm b/setup/DIFxAPI/AppDrv/readme.htm deleted file mode 100644 index bffaefc3..00000000 --- a/setup/DIFxAPI/AppDrv/readme.htm +++ /dev/null @@ -1,109 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<HTML><HEAD><TITLE>DIFxAPI AppDrv</TITLE> -<META http-equiv=Content-Type content="text/html; charset=windows-1252"> -<META content="MSHTML 6.00.2900.2802" name=GENERATOR><!-- #BeginEditable "doctitle" --><!-- #EndEditable --></HEAD> -<BODY link=#0000FF><FONT face=Verdana size=5> -<H2>Driver Install Frameworks API (DIFx API) </H2></FONT><FONT -face=Verdana size=2> -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><A -href="file:///C:/Documents%20and%20Settings/tstone/My%20Documents/DIFx%20Readmes/DPInst/readme.htm#Note">Note</A> - -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><A -href="file:///C:/Documents%20and%20Settings/tstone/My%20Documents/DIFx%20Readmes/DPInst/readme.htm#Intro">Description</A> -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><A -href="file:///C:/Documents%20and%20Settings/tstone/My%20Documents/DIFx%20Readmes/DPInst/readme.htm#Run">Building the Sample</A> -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><A -href="file:///C:/Documents%20and%20Settings/tstone/My%20Documents/DIFx%20Readmes/DPInst/readme.htm#Plug">Running the Sample</A> -<H3><A name=Note></A>Note</H3> -<P>This sample works only on an x86 Windows operating system. However, the -techniques illustrated in this sample apply to Windows operating systems for -other architectures as well.<BR> -<H3><A name=Intro></A>Description</H3> -<P>This sample demonstrates the usage of the application to driver dependency feature of DIFx API. It provides an example of how the INSTALLERINFO structure is to be used in calls to DriverPackageInstall and DriverPackageUninstall functions. By passing the INSTALLERINFO structure as a parameter to the DriverPackageInstall function, an application expresses a dependency on the driver package. By passing the INSTALLERINFO structure as a parameter to the DriverPackageUninstall function, an application removes its dependency on the driver package. -</P> -<H3><A name=Run></A>Building the Sample</H3> -<P>Navigate to the src\setup\DIFxAPI\AppDrv directory and run the following command: - -<P> build -cZ - -<H3><A name=Plug></A>Running the Sample</H3> -<P>The usage of AppDrv.exe is as follows:</P> -<P>AppDrv.exe <option> <full path to the inf file> <Application ID> <Product -display name> <Product name> <Manufacturer name><br> - </P> -<P><option><option> <full path to the inf file> <Application ID> <Product display name> <Product name> <Manufacturer name> - -<option> can be one of the following:</P> -<P> /i - Install the driver - -</P> -<P> /u - Uninstall the driver - -<Application ID> - -</P> -<P><Application ID> is a unique identifier that denotes the application that is installing the driver</P> -<P><Product Display name> is a user-friendly display name for the application that is installing the driver -<Product name> - -</P> -<P><Product name> is the name of the application that is installing the driver</P> -<P><Manufacturer name> is the name of the company that is shipping that is installing the driver - -</P> -<P>In order to understand the application to driver dependency feature of DIFx -API, try the following:</P> -<P>1) Run the command</P> -<P> AppDrv.exe /i <Path to some INF> <Path to INF> abc123 "My first application" "App 1" "Good Company, Inc." - -<Path to INF> - -</P> -<P> <Path to INF> should be the full path to the INF file for some driver package. - -</P> -<P>For example, you can use one of the sample driver packages that are provided in the directory src\setup\DIFxSampleDriverPackages in the DDK. - -At this point DIFx API will install the driver and it will register that an application with application ID "abc123" is dependent on the driver. - -</P> -<P>2) Run the command:</P> -<P> AppDrv.exe /i <Path to the same INF> <Path to the same INF> xyz456 "My second application" "App 2" "Good Company, Inc." - -<Path to the same INF> - -</P> -<P> <Path to the same INF> should be the path to the same INF that was used in step 1. - -</P> -<P>At this point DIFx API will register that two applications, with application IDs "abc123" and "xyz456" are dependent on the driver. - -</P> -<P>3) Run the command:</P> -<P> AppDrv.exe /u <Path to the same INF> <Path to the same INF> abc123 "My first application" "App 1" "Good Company, Inc." - -<Path to the same INF> - -</P> -<P> <Path to the same INF> should be the path to the same INF that was used in step 1. - -</P> -<P>At this point, DIFx API will remove the dependency of the application with application ID "abc123" from the driver. However, it will not uninstall the driver, because the application with application ID "xyz456" is still dependent on it. - -</P> -<P>4) Run the command:</P> -<P> AppDrv.exe /u <Path to the same INF> <Path to the same INF> xyz456 "My second application" "App 2" "Good Company, Inc." - -<Path to the same INF> -</P> -<P> <Path to the same INF> should be the path to the same INF that was used in step 1. - -</P> -<P>At this point, DIFx API will remove the dependency of the application with application ID "xyz456" from the driver. Since no other applications are dependent on the driver, DIFx API will also uninstall the driver. -</P> - -<P align=center><A -href="file:///C:/Documents%20and%20Settings/tstone/My%20Documents/DIFx%20Readmes/DPInst/readme.htm#top"><FONT -face=Verdana size=2>Top of page</FONT></A><FONT face=Verdana size=2> -</P></FONT><FONT face="MS Sans Serif" size=1> -<P>� Microsoft Corporation 2002</FONT> </FONT></P></BODY></HTML> diff --git a/setup/DIFxAPI/DIFxCmd/readme.htm b/setup/DIFxAPI/DIFxCmd/readme.htm deleted file mode 100644 index a369e56e..00000000 --- a/setup/DIFxAPI/DIFxCmd/readme.htm +++ /dev/null @@ -1,59 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<HTML><HEAD><TITLE>DIFxAPI AppDrv</TITLE> -<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> -<META content="MSHTML 6.00.2900.2802" name=GENERATOR><!-- #BeginEditable "doctitle" --><!-- #EndEditable --></HEAD> -<BODY link=#0000ff><FONT face=Verdana size=5> -<H2>Driver Install Frameworks API (DIFx API) </H2></FONT><FONT face=Verdana -size=2> - -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><a href="#Intro">Description</a> - -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><a href="#Build">Building -the Sample </a> -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><a href="#Run">Running -the Sample</a> -<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><a href="#Usage">Usage of the -DIFXAPI Sample Program</a><P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> <H3><A name=Intro></A>Description</H3> -<P>This sample demonstrates how to use DIFx API. It shows how to preinstall, -install and uninstall driver packages. It also shows how to retrieve the path to -an already preinstalled or installed driver package. It furthers shows how to -capture logging information that the APIs create during installs and uninstalls. </P> -<H3><a name="Build"></a>Building the Sample</H3> -<P>Navigate to the src\setup\DIFxAPI\DIFXCMD directory and run the following -command: -<P> build -cZ -<H3><a name="Run"></a>Running the Sample</H3> -<P>Once the sample is built, run the following commands. Before running the -command, copy a complete driver package into the same directory:</P> -<P>difxcmd.exe to print out how to use the command line tool - -</P> -<P>difxcmd.exe /p my.inf , to preinstall my.inf </P> -<P>difxcmd.exe /i my.inf , to install my.inf </P> -<P>difxcmd.exe /i my.inf 16, to install my.inf in legacy mode (accepting unsigned drivers) -</P> -<P>difxcmd.exe /p my.inf , to obtain the path to the installed my.inf </P> -<P>difxcmd.exe /u my.inf , to uninstall my.inf </P> -<H3><a name="Usage"></a>Usage of the DIFXAPI Sample Program </H3> -<p>difxapi /p /i /u /g <inf-filename> [Flag(s)]<br> -<br> -Options:<br> -/p : preinstall driver package.<br> -/i : install driver package.<br> -/u : uninstall driver package.<br> -/g : get driver package path.<br> -<br> -<inf-filename> : has to be in the current directory.<br> -<br> -Flags:<br> -DRIVER_PACKAGE_REPAIR: 0x00000001 ( 1)<br> -DRIVER_PACKAGE_SILENT: 0x00000002 ( 2)<br> -DRIVER_PACKAGE_FORCE: 0x00000004 ( 4)<br> -DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT: 0x00000008 ( 8)<br> -DRIVER_PACKAGE_LEGACY: 0x00000010 (16)<br> -DRIVER_PACKAGE_DELETE_FILES: 0x00000020 (32)</p> -<P align=center><A -href="file:///C:/Documents%20and%20Settings/tstone/My%20Documents/DIFx%20Readmes/DPInst/readme.htm#top"><FONT -face=Verdana size=2>Top of page</FONT></A><FONT face=Verdana size=2> -</P></FONT><FONT face="MS Sans Serif" size=1> -<P>� Microsoft Corporation 2002</FONT> </FONT></P></BODY></HTML> diff --git a/video/KMDOD/readme.htm b/video/KMDOD/readme.htm deleted file mode 100644 index 36a7acd0..00000000 --- a/video/KMDOD/readme.htm +++ /dev/null @@ -1,46 +0,0 @@ -<html> - -<head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <meta http-equiv="Content-Language" content="en-us"> - <title>Kernel-Mode Display-Only Miniport Driver</title> -</head> - -<body> - <p> - This is a sample kernel-mode display-only miniport driver. It implements most of DDIs which display-only drivers should provide to the - Windows Display Driver Model (WDDM). The sample can be installed on top of a VESA-capable graphics adapter or on top of a graphics device - that supports access to the frame buffer through UEFI. - </p> - <p> - The code is provided mainly as a reference for people writing miniport drivers for display-only devices, although it can also be useful - for people working on full WDDM drivers to help in display-related DDI implementations. - </p> - <p> - The BltHw.* files are provided only to simulate how the blt operations would work on a real hardware device and should not be used as a - basis for actual implementation. The INF file is provided mainly to illustrate how to make the miniport driver visible to other WDDM - components. - </p> - <p> - Here are some useful links to MSDN documentation: - </p> - <ul> - <li> - <a href="http://msdn.microsoft.com/en-us/library/windows/hardware/ff569172.aspx">Display Devices (Adapters and Monitors)</a> - - The root of the MSDN docs tree for display adapter development - </li> - <li> - <a href="http://msdn.microsoft.com/en-us/library/windows/hardware/hh439923.aspx">New Reference Topics for Windows 8</a> - - Documents the new interfaces present in WDDM 1.2 (Windows 8) - </li> - <li> - <a href="http://msdn.microsoft.com/library/windows/hardware/br259098">WDDM Enhancements in Windows 8 Developer Preview</a> - - A summary of the new features in WDDM 1.2 (Windows 8) - <li> - <a href="http://msdn.microsoft.com/en-us/library/windows/hardware/ff568500.aspx">Multiple Monitors and Video Present Networks</a> - - Topics about making your driver support multiple targets/sources - </li> - </ul> -</body> - -</html> diff --git a/wmi/wmiacpi/readme.htm b/wmi/wmiacpi/readme.htm deleted file mode 100644 index 15df59fc..00000000 --- a/wmi/wmiacpi/readme.htm +++ /dev/null @@ -1,228 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" -xmlns:w="urn:schemas-microsoft-com:office:word" -xmlns="http://www.w3.org/TR/REC-html40"> - -<head> -<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> -<meta name=ProgId content=Word.Document> -<meta name=Generator content="Microsoft Word 9"> -<meta name=Originator content="Microsoft Word 9"> -<link rel=File-List href="./readme_files/filelist.xml"> -<title>WMI ACPI Mapper</title> -<!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:LastAuthor>Alan Warwick</o:LastAuthor> - <o:Revision>3</o:Revision> - <o:TotalTime>1</o:TotalTime> - <o:Created>2001-02-09T22:24:00Z</o:Created> - <o:LastSaved>2001-02-09T22:26:00Z</o:LastSaved> - <o:Pages>1</o:Pages> - <o:Words>324</o:Words> - <o:Characters>1852</o:Characters> - <o:Company>Microsoft Internal</o:Company> - <o:Lines>15</o:Lines> - <o:Paragraphs>3</o:Paragraphs> - <o:CharactersWithSpaces>2274</o:CharactersWithSpaces> - <o:Version>9.3821</o:Version> - </o:DocumentProperties> -</xml><![endif]--> -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:"MS Mincho"; - panose-1:2 2 6 9 4 2 5 8 3 4; - mso-font-alt:"\FF2D\FF33 \660E\671D"; - mso-font-charset:128; - mso-generic-font-family:modern; - mso-font-pitch:fixed; - mso-font-signature:-1610612033 1757936891 16 0 131231 0;} -@font-face - {font-family:"\@MS Mincho"; - panose-1:2 2 6 9 4 2 5 8 3 4; - mso-font-charset:128; - mso-generic-font-family:modern; - mso-font-pitch:fixed; - mso-font-signature:-1610612033 1757936891 16 0 131231 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.MsoPlainText, li.MsoPlainText, div.MsoPlainText - {margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:10.0pt; - font-family:"Courier New"; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 65.95pt 1.0in 65.95pt; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style> -</head> - -<body lang=EN-US style='tab-interval:.5in'> - -<div class=Section1> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>This -directory contains files that allow an ACPI bios developer to add <o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>instrumentation -from within ASL code. ASL code can expose data blocks, methods<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>and -events via WMI by leveraging the WMIACPI.SYS driver. More information<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>about the -mechanics of writing ASL to expose instrumentation information is<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>available -in wmi-acpi.doc or on <o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>http://www.microsoft.com/HWDev/MANAGEABILITY/wmi-acpi.htm.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>Device.ASL -- ASL code that can be included in the acpi bios that exposes <o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������ </span>a set of packages, strings, data, -methods and events.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>acpimof.mof -- Managed Object Format file that contains a description<span -style="mso-spacerun: yes">� </span>of the <o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������� </span>data blocks, methods and events -exposed. This description is<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������� </span>required so that WMI is able to -access the data blocks, methods<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������� </span>and events.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>acpimof.rc, -acpimof.def - FIles required to build acpimof.dll, a resource only<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������� </span>dll.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>makefile, -sources, makefile.inc - build glue<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>wmi-acpi.doc -- White paper describing how to add instrumentation to ASL code.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>acpimof.vbs -- Built at the same time as acpimof.dll, this file contains a<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������� </span>VBScript applet that will query -all classes specified in the<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">������������� </span>acpimof.mof file.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>To add -the sample code to your acpi bios and access via WMI:<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>1. -Include the contents of device.asl to your asl source and rebuild the<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>DSDT. Update the OS with the new dsdt via -the registry or reflashing.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>2. -Build acpimof.dll in this directory. acpimof.dll is a resource only dll<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>that contains the compiled mof in a form -that WMI can import into its<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>schema.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>3. Copy -acpimof.dll to %windir%\system32 and add a value named "MofImagePath"<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>under the -HKEY_LOCAL_MACHINE\CurrentControlSet\Services\WmiAcpi key. The<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>contents of the value should be a path to -the acpimof.dll file.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>4. -Reboot. When PNP recognizes the new device with a pnpid of pnp0c14<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>it will install wmiacpi.sys automatically -and make the mof resource<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>in acpimof.dll available to the WMI schema.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>5. -Execute the acpimof.vbs test by entering acpimof.vbs at the command line<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><span -style="mso-spacerun: yes">�� </span>and reviewing the acpitest.log to insure -that all data returned is correct.<o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p> - -<p class=MsoPlainText><span style='mso-fareast-font-family:"MS Mincho"'>Note -that no INF file is needed since Windows supplies an INF for the ACPI mapper -device as part of Windows<o:p></o:p></span></p> - -</div> - -</body> - -</html> diff --git a/wmi/wmiacpi/wmi-acpi.htm b/wmi/wmiacpi/wmi-acpi.htm deleted file mode 100644 index 6bf9de16..00000000 --- a/wmi/wmiacpi/wmi-acpi.htm +++ /dev/null @@ -1,1804 +0,0 @@ -<html> - -<head> -<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> -<meta name="ProgId" content="FrontPage.Editor.Document"> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<title>New Page 1</title> -<style> -<!-- - p.MsoNormal - {mso-style-parent:""; - margin-bottom:.0001pt; - font-size:10.0pt; - font-family:"Times New Roman"; - margin-left:0in; margin-right:0in; margin-top:0in} - table.MsoNormalTable - {mso-style-parent:""; - font-size:10.0pt; - font-family:"Times New Roman"} -p.Tt - {mso-style-parent:""; - margin-top:1.0pt; - margin-right:0in; - margin-bottom:3.0pt; - margin-left:0in; - line-height:11.0pt; - page-break-after:avoid; - font-size:9.5pt; - font-family:Arial; - font-weight:bold; - font-style:italic; - } -p.Ch - {mso-style-parent:""; - margin-top:2.0pt; - margin-right:0in; - margin-bottom:27.0pt; - margin-left:0in; - line-height:27.0pt; - page-break-after:avoid; - font-size:22.0pt; - font-family:Arial; - } -p.Tr - {mso-style-parent:""; - margin-bottom:.0001pt; - text-align:right; - line-height:1.0pt; - page-break-after:avoid; - border:medium none; - padding:0in; - font-size:4.0pt; - font-family:"Times New Roman"; - margin-left:0in; margin-right:0in; margin-top:0in} -p.Le - {margin-bottom:.0001pt; - text-align:right; - line-height:8.0pt; - font-size:6.0pt; - font-family:"Times New Roman"; - margin-left:0in; margin-right:0in; margin-top:0in} -p.Tpf - {margin-top:1.0pt; - margin-right:0in; - margin-bottom:3.0pt; - margin-left:0in; - line-height:11.0pt; - tab-stops:14.0pt 28.0pt; - font-size:9.5pt; - font-family:"Times New Roman"; - } -p.MsoToc1 - {margin-bottom:.0001pt; - line-height:11.0pt; - page-break-after:avoid; - tab-stops:right dotted 6.0in; - font-size:9.5pt; - font-family:"Times New Roman"; - margin-left:0in; margin-right:0in; margin-top:0in} -p.MsoToc2 - {margin-top:0in; - margin-right:0in; - margin-bottom:0in; - margin-left:14.0pt; - margin-bottom:.0001pt; - line-height:11.0pt; - tab-stops:right dotted 6.0in; - font-size:9.5pt; - font-family:"Times New Roman"; - } -h1 - {mso-style-parent:""; - margin-top:10.0pt; - margin-right:0in; - margin-bottom:4.0pt; - margin-left:0in; - line-height:22.0pt; - page-break-after:avoid; - border:medium none; - padding:0in; - font-size:20.0pt; - font-family:Arial; - font-weight:normal} -p.MsoListBullet - {margin-top:0in; - margin-right:0in; - margin-bottom:4.0pt; - margin-left:.25in; - text-indent:-.25in; - tab-stops:list blank .25in; - font-size:10.0pt; - font-family:"Times New Roman"; - } -p.Ex - {mso-style-parent:""; - margin-bottom:.0001pt; - line-height:11.0pt; - tab-stops:19.5pt 39.0pt 58.5pt 78.0pt 97.5pt 117.0pt 136.5pt 156.0pt 175.5pt 195.0pt 214.5pt 3.25in 253.5pt 273.0pt 292.5pt 312.0pt 331.5pt; - font-size:8.0pt; - font-family:"Courier New"; - margin-left:0in; margin-right:0in; margin-top:0in} -p.Thf - {margin-top:1.0pt; - margin-right:0in; - margin-bottom:3.0pt; - margin-left:0in; - line-height:11.0pt; - page-break-after:avoid; - font-size:9.5pt; - font-family:"Times New Roman"; - font-weight:bold; - } -p.Th - {margin-top:1.0pt; - margin-right:0in; - margin-bottom:3.0pt; - margin-left:12.0pt; - line-height:11.0pt; - page-break-after:avoid; - font-size:9.5pt; - font-family:"Times New Roman"; - font-weight:bold; - } -p.Tp - {margin-top:1.0pt; - margin-right:0in; - margin-bottom:3.0pt; - margin-left:12.0pt; - line-height:11.0pt; - tab-stops:14.0pt 28.0pt; - font-size:9.5pt; - font-family:"Times New Roman"; - } -p.Lp1 - {margin-top:0in; - margin-right:0in; - margin-bottom:4.0pt; - margin-left:.25in; - font-size:10.0pt; - font-family:"Times New Roman"; - } -p.Term1 - {mso-style-parent:""; - margin-bottom:.0001pt; - line-height:12.0pt; - page-break-after:avoid; - font-size:10.0pt; - font-family:"Times New Roman"; - font-weight:bold; - margin-left:0in; margin-right:0in; margin-top:0in} -p.Def1 - {margin-top:0in; - margin-right:0in; - margin-bottom:8.0pt; - margin-left:10.0pt; - font-size:10.0pt; - font-family:"Times New Roman"; - } -h2 - {margin-top:7.0pt; - margin-right:0in; - margin-bottom:3.0pt; - margin-left:0in; - line-height:19.0pt; - page-break-after:avoid; - font-size:17.0pt; - font-family:Arial; - font-weight:normal} ---> -</style> -</head> - -<body> - -<div style="border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.5pt solid windowtext; padding-left: 0in; padding-right: 0in; padding-top: 0in; padding-bottom: 1.0pt"> - <p class="MsoNormal" style="border: medium none; padding: 0in"><b> - <span style="font-size: 30.0pt; font-family: Arial Black">WinHEC 99 White - Paper </span></b> -</div> -<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> - <tr> - <td width="295" valign="top" style="width: 221.4pt; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in"> - <p class="Tt">Windows<span style="font-size: 8.0pt">�</span> Hardware - Engineering Conference:<br> - Advancing the Platform</td> - <td width="304" valign="top" style="width: 228.0pt; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in"> - <p class="MsoNormal" align="right" style="text-align: right"> </td> - </tr> -</table> -<p class="Ch"><a name="_Toc441982198">Windows 2000 Instrumentation: WMI and ACPI</a></p> -<p class="Tt">Abstract</p> -<div style="mso-border-top-alt: solid windowtext .75pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding: 0in"> - <p class="Tr"> </div> -<p class="MsoNormal">This paper describes the process that system manufacturers -(OEMs) can use to provide instrumentation information by including ACPI objects -in the systems they build that will be recognized by Microsoft� Windows� -Management Instrumentation (WMI). This information applies for Windows 2000 and -Windows 98 OSR 1. By including ACPI objects in the systems they build, OEMs can -take advantage of a generic mapping driver that allows WMI to make the -information available to the instrumentation consumers.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The ACPI subsystem contains a wealth of instrumentation -information; OEMs are encouraged to use ACPI to add additional platform specific -instrumentation information. However, ACPI objects are not readily accessible by -instrumentation data consumers such as Web-Based Enterprise Management (WBEM). -</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">This paper assumes the reader is familiar with driver -mapping under Windows operating systems and the Data Block GUID Mapping control -method for WMI. References for background and details are cited at -http://www.microsoft.com/hwdev/manageability/; ACPI implementation information -is available at http://www.teleport.com/~acpi/.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><!--[if supportFields]> DATE \@ "MMMM d, yyyy" \* -MERGEFORMAT <![endif]-->March 12, 1999<!--[if supportFields]><![endif]--></p> -<p class="Le"> </p> -<p class="Le"> </p> -<p class="Tt">Disclaimer and Copyright</p> -<div style="mso-border-top-alt: solid windowtext .75pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding: 0in"> - <p class="Tr"> </div> -<p class="Tpf" style="line-height: 9.0pt"><b><span style="font-size: 8.0pt"> -Microsoft Disclaimer: </span></b><span style="font-size: 7.0pt">This document is -for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR -IMPLIED, IN THIS DOCUMENT.</span></p> -<p class="Tpf" style="line-height: 9.0pt"><span style="font-size: 7.0pt"> -Microsoft Corporation may have patents or pending patent applications, -trademarks, copyrights, or other intellectual property rights covering subject -matter in this document. The furnishing of this document does not give you any -license to the patents, trademarks, copyrights, or other intellectual property -rights except as expressly provided in any written license agreement from -Microsoft Corporation. </span></p> -<p class="Tpf" style="line-height: 9.0pt"><span style="font-size: 7.0pt"> -Microsoft does not make any representation or warranty regarding specifications -in this document or any product or item developed based on these specifications. -Microsoft disclaims all express and implied warranties, including but not -limited to the implied warranties or merchantability, fitness for a particular -purpose and freedom from infringement. Without limiting the generality of the -foregoing, Microsoft does not make any warranty of any kind that any item -developed based on these specifications, or any portion of a specification, will -not infringe any copyright, patent, trade secret or other intellectual property -right of any person or entity in any country. It is your responsibility to seek -licenses for such intellectual property rights where appropriate. Microsoft -shall not be liable for any damages arising out of or in connection with the use -of these specifications, including liability for lost profit, business -interruption, or any other damages whatsoever. Some states do not allow the -exclusion or limitation of liability or consequential or incidental damages; the -above limitation may not apply to you. </span></p> -<p class="Tpf" style="line-height: normal"><span style="font-size: 7.0pt"> -Microsoft, DirectX, MS‑DOS, Win32, Windows, and Windows NT are registered -trademarks of Microsoft Corporation. Other product and company names mentioned -herein may be the trademarks of their respective owners.</span></p> -<p class="Tpf" style="line-height: normal"><span style="font-size: 7.0pt">� 1999 -Microsoft Corporation. All rights reserved.</span></p> -<p class="Tt"> </p> -<p class="Tt">Contents</p> -<div style="mso-border-top-alt: solid windowtext .75pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding: 0in"> - <p class="Tr"> </div> -<p class="MsoToc1"><!--[if supportFields]> TOC \o "1-2" <![endif]-->Technology -Overview for Windows 2000 -Instrumentation....................................................................................... -<!--[if supportFields]>PAGEREF _Toc445868966 \h <![endif]-->3<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900360036000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc1">WMI Overview for Windows 2000 -Instrumentation................................................................................................... -<!--[if supportFields]>PAGEREF _Toc445868967 \h <![endif]-->3<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900360037000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc1">ACPI-to-WMI Mapper Goals for Windows 2000 -Instrumentation........................................................................... -<!--[if supportFields]>PAGEREF _Toc445868968 \h <![endif]-->4<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900360038000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc1">ACPI Control Method Naming Conventions and Functionality for -Windows 2000 Instrumentation................ <!--[if supportFields]>PAGEREF -_Toc445868969 \h <![endif]-->5<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900360039000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc1">Data Block Design for Windows 2000 -Instrumentation............................................................................................. -<!--[if supportFields]>PAGEREF _Toc445868970 \h <![endif]-->8<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900370030000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc1">FAQ about WMI and ACPI for Windows 2000 -Instrumentation........................................................................... -<!--[if supportFields]>PAGEREF _Toc445868971 \h <![endif]-->11<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900370031000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc1"><span style="layout-grid-mode: line">ASL Methods and Sample -Code</span>.................................................................................................................................. -<!--[if supportFields]>PAGEREF _Toc445868972 \h <![endif]-->11<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900370032000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc2"><span style="layout-grid-mode: line">ASL Sample Code for an -Event and Initiating Method</span>...................................................................................... -<!--[if supportFields]>PAGEREF _Toc445868973 \h <![endif]-->12<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900370033000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc2">Sample ASL Code Embedding MOD Data in ASL.............................................................................................. -<!--[if supportFields]>PAGEREF _Toc445868974 \h <![endif]-->14<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900370034000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="MsoToc2">Sample .Mof -File....................................................................................................................................................... -<!--[if supportFields]>PAGEREF _Toc445868975 \h <![endif]-->17<!--[if gte mso 9]><xml> - <w:data>08D0C9EA79F9BACE118C8200AA004BA90B02000000080000000E0000005F0054006F0063003400340035003800360038003900370035000000</w:data> -</xml><![endif]--><!--[if supportFields]><![endif]--></p> -<p class="Le"><!--[if supportFields]><![endif]--> </p> -<p><span style="font-size: 20.0pt; font-family: Arial"> -<br clear="all" style="page-break-before: always"> - </span></p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc440694666">Technology Overview</a> for Windows 2000 - Instrumentation</h1> -</div> -<p class="MsoNormal">The ACPI-to-WMI mapping functionality is achieved by means -of two device drivers provided with the Windows 2000 and Windows 98 OSR1 -operating systems: </p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Acpi.sys is the regular ACPI device driver with some -modifications. </p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Wmiacpi.sys registers with Plug and Play ID PNP0c14. </p> -<p class="Le"> </p> -<p class="MsoNormal">OEMs can differentiate their PC system capabilities by -writing ACPI Source Language (ASL) code and a Managed Object Format (.mof or MOF) -file. The .mof file can be in the BIOS or on disk. For more information about -MOF, see the �MOF Data Types� section later in this paper.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">ASL code is never executed directly by the Wmiacpi.sys -driver. ASL code is always executed by the Acpi.sys driver (see the ASL -information at http://www.teleport.com/~acpi/). Wmiacpi.sys will invoke Acpi.sys -to call control methods that access the management data exposed by the mapping -driver.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">Microsoft does not ship a .mof file that is associated with -the Wmiacpi.sys driver. The only information surfaced through ACPI is the -temperature zone information, which is surfaced through and associated with the -Acpi.sys device driver. </p> -<p class="MsoNormal"> </p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc440694667">WMI Overview</a> for Windows 2000 Instrumentation</h1> -</div> -<p class="MsoNormal">WMI organizes individual data items (properties) into data -blocks (structures) that contain related information. Data blocks may have one -or more data items. Each data item has a unique index within the data block, and -each data block is named by a globally unique 128-bit number called a globally -unique identifier (GUID). WMI can provide notifications to the data producer as -to when to start and stop collecting the data items that compose a data block. -WMI has no knowledge of the data format for individual data blocks.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">WMI functionality allows for querying all instances of a -data block or a single instance of a data block. It also allows for setting all -data items in an instance of a data block or a single data item within a single -instance of a data block.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">In addition to queries and sets, WMI allows WMI method -calls, which are functionally equivalent to an I/O control (IOCTL) call to a -device. Each WMI method call is identified by a GUID and a method index for that -GUID. All WMI method calls use one buffer for input and output parameters. WMI -allows notifications of significant events to be delivered to interested -user-mode applications. Each type of event is uniquely named by a GUID. Events -may also carry a data block with additional information about the event. WMI can -provide notifications to the event generator about when to enable and disable an -event type.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">WMI is an open architecture that allows OEMs to define -their own data blocks, methods, and events. Along with the data that composes -the custom data block, the OEM must also provide a description that generally -represents how a data block or WMI method is mapped to a 2-character ID. This -2‑character ID is part of the names of the control methods that act upon the -data block. </p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">For example, when a call is made to query about the data -block represented by a WMI GUID, the mapper will evaluate the WQ<i>xx</i> -control method (where <i>xx</i> is the 2-character ID mapped to that GUID). -These mappings are defined by the ACPI code and obtained by the mapper -evaluating the _WDG control method. For more information, see �ACPI Control -Method Naming Conventions and Functionality� later in this paper.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The mapping process is similar for events. The _WDG control -method provides a mapping between the WMI event GUID that represents the event -and the notification code specified in the ASL notify instruction. For example, -when ACPI provides a callback to the mapper that a control method executed a <b> -notify(mapper-device, 0x81)</b><i> </i>function<i>,</i> the mapper will look up -the WMI GUID mapped to 0x81 and use this WMI GUID in building the WMI event. -Before launching the WMI event, the mapper will evaluate _WED to retrieve any -additional data that belongs with the event.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><a name="_Toc409597061"><b>Loading the Mapping Driver</b></a><b>. -</b>The Plug and Play ID PNP0c14 is assigned as the WMI-mapping pseudo device; -the operating system device INFs (Plug and Play ID-to-device driver lookup -table) point this Plug and Play ID to the ACPI-to-WMI mapping driver. To cause -the ACPI-to-WMI mapping driver to load, an ACPI system needs to define one or -more devices with that Plug and Play ID in the ACPI device tree. Each device -declared in the ACPI device tree would have its own operating system device -object with its own set of mappings. </p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">In this way, different sets of data blocks can be organized -in the appropriate place within the device tree. This organization allows the -different devices and their corresponding data blocks to come and go from the -ACPI device tree. Note that if there are multiple WMI-mapping pseudo devices in -the ACPI device tree, each device must have a unique value for its _UID.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><a name="_Toc409597062"><b>Mapping Driver Functionality</b></a><b>. -</b>Essentially the mapping driver will do the following:</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Manage all registration and unregistration with WMI and other -interactions with the operating system. This registration of data and data -blocks is done when the mapper gets the IRP_MN_REGINFO IRP.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>At WMI initialization time, the mapping driver will query an ACPI -method for the list of data block, event, and method GUIDs it supports, as well -as the mapping from the GUID to control method IDs. With this information, the -mapping driver will register those GUIDs with WMI.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Translate data block queries, sets, and method call I/O IRPs into -the appropriate ACPI control method call.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Receive notifications from the ACPI event handler control methods -and relaunch them as WMI events.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Translate strings between ASCIZ and UNICODE for data blocks marked -as wholly composed of a string.</p> -<p class="Le"> </p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc440694668">ACPI-to-WMI Mapper Goals</a> for Windows 2000 - Instrumentation</h1> -</div> -<p class="MsoNormal">The following list describes the goals for the ACPI-to-WMI -mapper:</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Expose data maintained by the hardware or firmware and accessible -through ACPI to user-mode instrumentation data consumers, such as WBEM or DMI.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Allow specific ACPI control methods to be called from a user-mode -instrumentation data consumer or hardware configuration application�for example, -from a control panel applet.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Deliver specific ACPI events to all user-mode callers that request -notification of that particular event.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Allow OEMs to include OEM-specific data blocks, user-mode�callable -ACPI control methods, and events without requiring any changes to the -ACPI-to-WMI mapper.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Allow general-purpose data consumer applications�those written -without any special knowledge of the data blocks exposed by a particular -machine�to be able to access and understand the data blocks, user-mode�callable -ACPI control methods, and events being mapped�including those that are OEM -specific.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Define standard data block formats, user-mode�callable ACPI -control methods, events and their WMI GUID mappings for common data blocks, and -callable control methods and events expected to be provided by all OEMs. This -can include dynamic data and functions identified by the industry in the SMBIOS -specification and other specifications.</p> -<p class="Le"> </p> -<p class="MsoNormal">These goals are achieved by having supporting code in the -ACPI-to-WMI mapper (Wmiacpi.sys) as well as in the core ACPI code itself (Acpi.sys).</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The following are <i>not</i> goals for the ACPI-to-WMI -mapper:</p> -<p class="MsoListBullet" style="page-break-after: avoid"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>To have specific knowledge about any data block that passes -through the mapper.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>To provide interfaces specifically for SMBIOS data and functions. -The mapper is an open architecture that is not restricted to SMBIOS data and -functionality.</p> -<p class="Le"> </p> -<p class="MsoNormal"><a name="_Toc440962623"><b>How SMBIOS-provided information -is handled</b></a><b>. </b>Vendors who want to provide OEM and system-specific -instrumentation data may choose to use SMBIOS as the mechanism. To use the -capabilities of the WMI infrastructure to surface this SMBIOS data, they must -conform to any SMBIOS version between 2.0 and 2.2. (Microsoft intends to support -future revisions of SMBIOS as and when they appear. To date, we have only one -SMBIOS 2.2 machine for testing). This allows the Microsoft Win32<span style="font-size: 8.0pt">�</span> -provider�which is shipped with Windows 2000 and future versions of Windows and -is available as an update to Windows 98�to populate almost all of the SMBIOS-provided -information into the CIMv2 namespace. In particular, almost all of the -information is put into Win32 classes. Some of these Win32 classes are derived -from the CIMv2.1 physical MOF. </p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The one exception where SMBIOS information will not be -automatically populated by the Win32 provider into the CIMv2 namespace is SMBIOS -vendor-specific data. Such SMBIOS vendor-defined data will be placed in a -�VendorBucket� class in a �Root\VendorDefined� namespace, and will not be -available in the CIMv2 namespace by default. Any system vendor who wants to -provide such data must write a provider that will interpret this data.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The SMBIOS data is read only once, either at boot time in -Windows 2000 or post boot on Windows 98. Dynamic updates that are made to the -SMBIOS data after it has been read will not be reflected in the namespaces in -this implementation. Microsoft is working with the industry to define standard -ACPI methods for dynamic updates.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The SMBIOS raw data will be available as a WMI data block -in Windows 2000 and as a flat file in Windows 98. This data will be interpreted -and populated into the namespaces by the Win32 provider.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><b>Note:</b> The Win32 provider capabilities used to read -and populate SMBIOS data as described above will be available in Windows 2000 -Beta 3.</p> -<p class="MsoNormal"> </p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc409597063">ACPI Control Method Naming Conventions and - Functionality</a> for Windows 2000 Instrumentation</h1> -</div> -<p class="MsoNormal">The <a name="_Toc409597064">Data Block GUID Mapping control -method</a> named _WDG evaluates to a buffer that has the GUID mapping -information for data blocks, events, and WMI methods. The result of the -evaluation is a buffer containing an array of the following structure. </p> -<p class="MsoNormal"> </p> -<p class="Ex" style="page-break-after: avoid">typedef struct</p> -<p class="Ex" style="page-break-after: avoid">{</p> -<p class="Ex" style="page-break-after: avoid"> GUID guid; // -GUID that names data block</p> -<p class="Ex" style="page-break-after: avoid"> union</p> -<p class="Ex" style="page-break-after: avoid"> {</p> -<p class="Ex" style="page-break-after: avoid"> CHAR ObjectId[2]; // -2-character ACPI ID (Data Blocks and Methods)</p> -<p class="Ex" style="page-break-after: avoid"> struct </p> -<p class="Ex" style="page-break-after: avoid"> {</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -42.0pt"> - UCHAR NotificationValue; // Byte value passed by event handler -control method</p> -<p class="Ex" style="page-break-after: avoid"> UCHAR Reserved[1];</p> -<p class="Ex" style="page-break-after: avoid"> } NotifyId;</p> -<p class="Ex" style="page-break-after: avoid"> }</p> -<p class="Ex" style="page-break-after: avoid"> USHORT InstanceCount; // -Number of separate instances of data block</p> -<p class="Ex" style="page-break-after: avoid"> USHORT Flags; // -Flags</p> -<p class="Ex">};</p> -<p class="Ex"> </p> -<p class="Ex">// Set this flag if the WCxx control method should be run to -whenever the first </p> -<p class="Ex">// data consumer is interested in collecting the data block and -whenever the last data </p> -<p class="Ex">// consumer is no longer interested.</p> -<p class="Ex"> </p> -<p class="Ex">#define WMIACPI_REGFLAG_EXPENSIVE 0x1</p> -<p class="Ex"> </p> -<p class="Ex">// Set this flag if the GUID represents a set of WMI method calls -and not a data block</p> -<p class="Ex"> </p> -<p class="Ex">#define WMIACPI_REGFLAG_METHOD 0x2</p> -<p class="Ex"> </p> -<p class="Ex">// Set this flag if the data block is wholly composed of a string -and should be </p> -<p class="Ex">// translated from ASCIZ to UNICODE in returning queries and from -UNICODE to ASCIZ </p> -<p class="Ex">// when passing sets</p> -<p class="Ex"> </p> -<p class="Ex">#define WMIACPI_REGFLAG_STRING 0x04</p> -<p class="Ex"> </p> -<p class="Ex">// Set this flag if the guid maps to an event rather than a data -block or method</p> -<p class="Ex"> </p> -<p class="Ex">#define WMIACPI_REGFLAG_EVENT 0x08</p> -<p class="Ex"> </p> -<p class="Le"> </p> -<p class="MsoNormal">Each element in the array describes the mapping of a WMI -data block GUID to a 2-letter ACPI method identifier used to compose the method -names that operate on the data block or on the notification value used in the -ASL <b>Notify</b> operation. Each element of the array also contains the number -of instances of the data block that exist and any flags that are set.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">This control method is required.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><a name="_Toc409597067">The following table summarizes the -information for each control method described later in this section.</a></p> -<p class="MsoNormal"> </p> -<p class="Tt">Control Method Summary</p> -<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> - <tr> - <td width="120" valign="top" style="width: 1.25in; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Control method</td> - <td width="96" valign="top" style="width: 1.0in; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Th">Object name</td> - <td width="103" valign="top" style="width: 77.4pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Th">Parameters</td> - <td width="281" valign="top" style="width: 210.6pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Th">Control method required</td> - </tr> - <tr> - <td width="120" valign="top" style="width: 1.25in; padding: 0in"> - <p class="Tpf">Data Block Query</td> - <td width="96" valign="top" style="width: 1.0in; padding: 0in"> - <p class="Th"><span style="font-weight: normal">WQ<i>xx</i></span></td> - <td width="103" valign="top" style="width: 77.4pt; padding: 0in"> - <p class="Th"><span style="font-weight: normal">ULONG</span></td> - <td width="281" valign="top" style="width: 210.6pt; padding: 0in"> - <p class="Th"><span style="font-weight: normal">Yes.</span></td> - </tr> - <tr> - <td width="120" valign="top" style="width: 1.25in; padding: 0in"> - <p class="Tpf">Data Block Set</td> - <td width="96" valign="top" style="width: 1.0in; padding: 0in"> - <p class="Tp">WS<i>xx</i></td> - <td width="103" valign="top" style="width: 77.4pt; padding: 0in"> - <p class="Tp">ULONG, buffer</td> - <td width="281" valign="top" style="width: 210.6pt; padding: 0in"> - <p class="Tp">No. Not required for data blocks that are read only.</td> - </tr> - <tr> - <td width="120" valign="top" style="width: 1.25in; padding: 0in"> - <p class="Tpf">Data Item Set</td> - <td width="96" valign="top" style="width: 1.0in; padding: 0in"> - <p class="Tp">Not supported</td> - <td width="103" valign="top" style="width: 77.4pt; padding: 0in"> - <p class="Tp"> </td> - <td width="281" valign="top" style="width: 210.6pt; padding: 0in"> - <p class="Tp"> </td> - </tr> - <tr> - <td width="120" valign="top" style="width: 1.25in; padding: 0in"> - <p class="Tpf">Method Execution</td> - <td width="96" valign="top" style="width: 1.0in; padding: 0in"> - <p class="Tp">WM<i>xx</i></td> - <td width="103" valign="top" style="width: 77.4pt; padding: 0in"> - <p class="Tp">ULONG, method ID, <br> - buffer</td> - <td width="281" valign="top" style="width: 210.6pt; padding: 0in"> - <p class="Tp">Yes. Required for data blocks specified in the data block GUID - mapping array and that have the WMIACPI_REG_METHOD flag set.</td> - </tr> -</table> -<p class="MsoNormal"> </p> -<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> - <tr> - <td width="120" valign="top" style="width: 1.25in; padding: 0in"> - <p class="Tpf">Event Enable and Disable</td> - <td width="96" valign="top" style="width: 1.0in; padding: 0in"> - <p class="Tp">WE<i>xx</i></td> - <td width="103" valign="top" style="width: 77.4pt; padding: 0in"> - <p class="Tp">UCHAR</td> - <td width="281" valign="top" style="width: 210.6pt; padding: 0in"> - <p class="Tp">No. Support only when keeping the event enabled incurs - significant overhead.</td> - </tr> - <tr> - <td width="120" valign="top" style="width: 1.25in; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tpf">Data Collection <br> - Enable and Disable</td> - <td width="96" valign="top" style="width: 1.0in; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tp">WC<i>xx</i></td> - <td width="103" valign="top" style="width: 77.4pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tp">UCHAR</td> - <td width="281" valign="top" style="width: 210.6pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tp">No. Support only when data collecting for the data block - incurs significant overhead.</td> - </tr> -</table> -<p class="Le"> </p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Data Block Query Control Method. </b>If the Data Block GUID -Mapping control method describes a data block that does not have the -WMIACPI_REG_METHOD flag set, there needs to be a control method that evaluates -to the contents of an instance of the data block. </p> -<p class="Lp1">By convention, the name of the object is WQ<i>xx</i>, where <i>xx</i> -is the 2-character ID that maps to the GUID being queried. One parameter is -passed to the method�the index of the instance, which is of type ULONG. Data -blocks registered with only a single instance can ignore the parameter. If the -result of the evaluation of the WQ<i>xx</i> method is a string, then the mapper -will convert that string to UNICODE so that it can be understood by WMI. </p> -<p class="Lp1">This control method is required.</p> -<p class="MsoListBullet"><a name="_Toc409597068"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Data Block Set Control Method</b></a><b>. </b>If the Data Block -GUID Mapping control method describes a data block that does not have the -WMIACPI_REG_METHOD flag set, there needs to be a control method that evaluates -to the contents of an instance of the data block. </p> -<p class="Lp1">By convention, the name of the object is WS<i>xx</i>, where <i>xx</i> -is the 2-character ID that maps to the GUID being set. Two parameters are passed -to the method; one is a ULONG that is the index of the instance, and the other -is a buffer that contains the new values for the data block. </p> -<p class="Lp1">If the GUID for the data block is registered with the -WMIACPI_REGFLAG_STRING flag, then the mapper assumes that the data block passed -is wholly composed of a single string and will convert that string from UNICODE -to ASCIZ so that it can be understood by the WS<i>xx</i> control method. </p> -<p class="Lp1">This control method is not required for those data blocks that -are read only. </p> -<p class="Lp1">Because the mapper is unaware of the format of the data block -passed by the caller of the WMI method, it will pass the buffer as a single -buffer parameter to the WM<i>xx</i> control method. The control method can use -the ASL instructions <b>CreateBitField</b>, <b>CreateDWordField</b>, <b> -CreateField</b>, and <b>CreateWordField</b> to break up the buffer into its -parts</p> -<p class="MsoListBullet"><a name="_Toc409597069"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Data Item Set Control Method</b></a><b>. </b>Setting of -individual data items within a data block is not supported. Typically, data -items that can be modified should be placed in their own data block or the -entire data block should be modified.</p> -<p class="MsoListBullet"><a name="_Toc409597070"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Method Execution Control Method</b></a><b>. </b>If the Data -Block GUID Mapping control method describes a data block that does have the -WMIACPI_REG_METHOD flag set, there needs to be a control method that performs -the action required of the method. </p> -<p class="Lp1">By convention, the name of the control method is WM<i>xx</i>, -where <i>xx</i> is the 2-character ID that maps to the GUID. This method call -has three parameters; the first is a ULONG that has the instance index being -executed; the second contains the method ID for the method being executed; and -the third is a buffer that contains the input for the method call. </p> -<p class="Lp1">If the GUID for the WMI method is registered with the -WMIACPI_REGFLAG_STRING flag, then the mapper assumes that buffer passed in is a -string. The mapper will convert the incoming string from UNICODE to ASCIZ. </p> -<p class="Lp1">If the result of the WM<i>xx</i> control method is a string, the -mapper will convert the result string from ASCIZ to UNICODE. The return value of -the WM<i>xx</i> method should be a buffer with the result of the method call. -</p> -<p class="Lp1">This control method is<b> </b>required for those data blocks -specified in the Data Block GUID Mapping array that have the WMIACPI_REG_METHOD -flag set. </p> -<p class="Lp1">Because the mapper is unaware of the format of the data block -passed by the caller of the WMI method, it will pass the buffer as a single -buffer parameter to the WM<i>xx</i> control method. The control method can use -the ASL instructions <b>CreateBitField</b>, <b>CreateDWordField</b>, <b> -CreateField</b>, and <b>CreateWordField</b> to break the buffer into its parts.</p> -<p class="MsoListBullet"><a name="_Toc409597071"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Event Enable and Disable Control Method</b></a><b>. </b>For -each event specified in the Event GUID Mapping control method that has the -WMIACPI_REG_EXPENSIVE flag set, there needs to be a control method that is -invoked whenever launching of the event should be enabled and disabled. </p> -<p class="Lp1">By convention, the control method is named WE<i>xx</i>, where <i> -xx</i> is the hex value of the notification code passed by the event handler -control method. This method has one parameter, a UCHAR that has a value of 0 if -the event is to be disabled or a nonzero value if it is to be enabled. </p> -<p class="Lp1">This method is optional and should only be supported if keeping -the event enabled incurs significant overhead.</p> -<p class="MsoListBullet"><a name="_Toc409597072"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Data Collection Enable and Disabl</b></a><b>e Control Method. -</b>For each data block described in the Data Block GUID Mapping control method -that has the WMIACPI_REG_EXPENSIVE flag set, there needs to be a control method -that is invoked whenever collection of the data that composes the data block -should be enabled and disabled </p> -<p class="Lp1">By convention, the control method is named WC<i>xx</i>, where <i> -xx</i> is the 2-character ID that maps to the GUID. This method has one -parameter, a UCHAR that has a value of 0 if data block collection is to be -disabled or a nonzero value if it is to be enabled. </p> -<p class="Lp1">This method is optional and should only be supported if -collecting the data for the data block incurs significant overhead.</p> -<p class="MsoListBullet"><a name="_Toc409597073"> -<span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><b>Additional Event Data</b></a><b>. </b>The _WED control method -is evaluated by the mapper in response to receiving a notification from a -control method. The results of the evaluation are passed as part of the WMI -event information. This mechanism allows additional data to be included with an -event. </p> -<p class="Lp1">The control method takes one parameter, which is the notification -code that caused the notification to occur. If the result of the _WED control -method is a string, then the string is converted from ASCIZ to UNICODE before -launching the WMI event.</p> -<p class="Le"> </p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc409597075">Data Block Design </a>for Windows 2000 - Instrumentation </h1> -</div> -<p class="MsoNormal"><b>Design Considerations. </b>Consider the following in -designing data blocks for instrumentation under Windows 2000:</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Data items that are read-only and are commonly used together -should be combined into a single data block.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Data items that are strings must be segregated into their own data -block and registered with the WMIACPI_REGFLAG_STRING flag set so that the mapper -can convert between ASCIZ and UNICODE.</p> -<p class="MsoListBullet"><span style="font-family: Symbol">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span>Data items that can be set individually should be segregated into -their own data blocks. For example, a set of data items that must be set all at -the same time can be combined into a single data block.</p> -<p class="Le"> </p> -<p class="MsoNormal"><a name="_Toc409597076"><b>MOF</b></a><b> Data Types. </b> -The Managed Object Format (MOF) for the data blocks implemented can be supplied -as either a resource attached to a file or as the buffer that results from the -evaluation of a control method. To establish the former, either bind the -resource to the Wmiacpi.sys image or establish a REG_EXPAND_SZ registry value -named <b>MofImagePath</b> under the WMIACPI service key. The contents of the -value is a path to the image file that contains the resource. In either case, -the resource must be named <b>MofResourceName</b>.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The buffer resulting from the evaluation of the WQ<i>xx</i> -control method assigned to the binary MOF GUID describes all data blocks, WMI -methods, and events for the device in a compressed binary format. This binary -data is created by building a text file using the MOF language and compiling it -with the MOF compiler.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">MOF data types are very rich. MOF supports the basic data -types of 8-, 16-, 32-, and 64-bit signed and unsigned integers, Boolean terms, -floating points, strings, and UTC datetimes. Embedded classes�that is, -structures that can contain basic data types and other embedded classes�are also -supported. In addition, fixed and variable length arrays of basic data types and -embedded classes are supported. </p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The MOF language defines the data types shown in the -following table.</p> -<p class="MsoNormal"> </p> -<p class="Tt">MOF Data Types</p> -<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> - <tr> - <td width="200" valign="top" style="width: 150.0pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Data types</td> - <td width="407" valign="top" style="width: 305.4pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Data format</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">String</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Null terminated ANSI string</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">sint32</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Signed 32-bit integer </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">uint32</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Unsigned 32-bit integer</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">sint16 </td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Signed 16-bit integer </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">uint16 </td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Unsigned 16-bit integer </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">sint64</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Signed 64-bit integer</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">uint64</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Unsigned 64-bit integer</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">sint8</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Signed 8-bit character </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">uint8</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Unsigned 8-bit integer</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">Datetime</td> - <td width="407" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">25-character string used to specify absolute dates or time - intervals. </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tpf">Boolean</td> - <td width="407" valign="top" style="width: 305.4pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tpf">Byte where 0 is FALSE, != 0 is TRUE </td> - </tr> -</table> -<p class="Le"> </p> -<p class="MsoNormal"><b>Important: </b>Because the MOF data types are much -richer than those for ACPI control methods, the control method must be careful -to pack the data blocks correctly within an ACPI buffer. The control method can -also restrict itself to using only common data types.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">Each MOF class represents a data block and may contain one -or more properties that represent data items within the data block. A MOF class -would hold all information needed to parse a data block returned from the mapper. -In addition, the MOF language allows rich meta-data to be included as qualifiers -on properties and classes. Some qualifiers are required, but most are optional.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">Class and data item qualifiers are defined in the following -table.</p> -<p class="MsoNormal"> </p> -<p class="Tt">Class and Data Item Qualifiers</p> -<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> - <tr> - <td width="200" valign="top" style="width: 150.0pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Qualifier</td> - <td width="400" valign="top" style="width: 300.0pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Description</td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Class qualifiers:</td> - <td width="400" valign="top" style="width: 300.0pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf"><span style="font-size: 10.5pt"> </span></td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[guid(�<i>guid-string</i>�)] </td> - <td width="400" valign="top" style="width: 300.0pt; padding: 0in"> - <p class="Tpf">Declares the GUID that represents the class within WMI. This - qualifier is required.</td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[Dynamic] </td> - <td width="400" valign="top" style="width: 300.0pt; padding: 0in"> - <p class="Tpf">Required for WBEM.</td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[WMI] </td> - <td width="400" valign="top" style="width: 300.0pt; padding: 0in"> - <p class="Tpf">Required for WBEM.</td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[Provider(�WmiProv�)] </td> - <td width="400" valign="top" style="width: 300.0pt; padding: 0in"> - <p class="Tpf">Required for WBEM.</td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[Description(<i>�description-text�)</i>]<i> </i></td> - <td width="400" valign="top" style="width: 300.0pt; padding: 0in"> - <p class="Tpf">Specifies description text for the class or property in the - locale specified for the locale qualifier.</td> - <td style="border: medium none; padding: 0in" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[WmiExpense(<i>expense-value</i>)] </td> - <td width="400" valign="top" style="width: 300.0pt; padding: 0in"> - <p class="Tpf">Specifies the quantity of system resources required in order - to collect data in the data block; <i>expense-value</i> is defined to be the - average number of CPU cycles needed to collect the data block. If this - qualifier is not specified, then the <i>expense-value</i> is assumed to be - 0.</td> - <td style="border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext" width="7"> - <p class="MsoNormal"> </td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf">Data item qualifiers:</td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding: 0in; background: #CCCCCC"> - <p class="Thf"><span style="font-size: 10.5pt"> </span></td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[read] </td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Specifies that the data item may be read.</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[write] </td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Specifies that the data item may be written.</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[WmiDataID(<i>data-item-ID</i>)] </td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Specifies the data item ID for the data item. This qualifier - is required.</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf"><span style="layout-grid-mode: line">[WmiScale(<i>scale-factor</i>)] - </span></td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf"><span style="layout-grid-mode: line">Specifies the scaling - factor to use when displaying the data. Before displaying the data returned - from a query of the data item, it is multiplied by 10 to the power of <i> - scale-factor</i>. If this qualifier is not specified, then the <i> - scale-factor</i> is assumed to be 0.</span></td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[WmiComplexity(�<i>complexity-category�</i>)] </td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Specifies the level of detail associated with the counter. <i> - Complexity-category</i> can have the value of �Novice� for the information - that anyone can understand, �Advanced� for information that is useful for - advanced users, �Expert� for information that is useful to only expert - users, and �Wizard� for information that is useful for the data provider - designer. If this qualifier is not specified, then a <i>complexity-category</i> - of �Novice� is assumed.</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; padding: 0in"> - <p class="Tpf">[WmiVolatility(<i>validity-interval</i>)] </td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; padding: 0in"> - <p class="Tpf">Specifies how often this data item value is updated - internally. <i>Validity-interval</i> is defined in units of milliseconds, so - a <i>validity-interval</i> of 1000 would mean that the data item is updated - internally every second. Data consumers can use this measure to determine - how frequently it should poll for changes in a data item. If this qualifier - is not specified, then no assumption on the length of validity for a data - item can be made.</td> - </tr> - <tr> - <td width="200" valign="top" style="width: 150.0pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tpf">[WmiSizeIs(�<i>property-name</i>�)] </td> - <td width="407" colspan="2" valign="top" style="width: 305.4pt; border-left: medium none; border-right: medium none; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding: 0in"> - <p class="Tpf">Specifies the property within the current class that has the - count of the number of array elements (not bytes) contained in a variable - length array.</td> - </tr> -</table> -<p class="Le"> </p> -<p class="MsoNormal" style="margin-right: -24.0pt">The order that the data items -are laid out in the data block is controlled by the data item ID. Data item IDs -must be allocated contiguously starting with data item ID 1. The data item order -specified in the MOF is not relevant. </p> -<p class="MsoNormal" style="margin-right: -24.0pt"> </p> -<p class="MsoNormal" style="margin-right: -24.0pt">MOF supports arrays of the -basic types shown in the �MOF Data Types� table shown earlier. A variable sized -array must have a <b>WmiSizeIs()</b> qualifier that specifies the property that -has the number of elements in the array. </p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><a name="_Toc409597077"><b>Data Block Format</b></a><b>. -</b>The format of the data block buffer returned from the query control method -and passed into the set control method must be consistent with the description -of it specified by the MOF for that data block with respect to the order and -size of the data items within the data block<span style="layout-grid-mode: line">.</span> -The Boolean data type is 1 byte in length and has a value of 0 for FALSE and -non-zero value for TRUE. The string data type is a C-style ANSI null-terminated -string.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><a name="_Toc409597078"><b>Standard Data Blocks, Methods, -and Events</b></a><b>. </b>Additional data blocks, events, and methods will be -defined in the future; they should be implemented by all OEMs in order to ensure -a minimum of functionality on all PCs. In the future, an industry standard will -be defined for the globally unique GUIDs to be assigned to the data blocks. The -WMI component within Windows will contain the MOF definition for these standard -data blocks so it does not need to be part of the result from the binary .mof -query.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal"><a name="_Toc440694672"><b>Custom Data Blocks, Methods and -Events</b></a><b>. </b>Custom or OEM-specific data blocks, events, and methods -can be added by including them in the result of the _WDG method. The GUIDs that -are assigned must be globally unique so they can be generated by a tool such as -Guidgen or Uuidgen, which are provided with the WMI information in the Microsoft -Platform SDK.</p> -<p class="MsoNormal"> </p> -<p class="MsoNormal">The MOF definition for these custom data blocks must be -included in the results of the WQ<i>xx</i> method, where <i>xx</i> has been -mapped to the MOF Data GUID, which is the GUID that is queried and returns MOF -data�in order for applications to be able to access the data blocks. Or the MOF -could be added as a resource to Wmiacpi.sys with a name of <b>MofResourceName</b> -and a type MOFDATA. It can also be a resource in another image file with same -name and type that is pointed to by the <b>MofImagePath </b>value in the -registry key HKLM\CurrentControlSet\Services\WmiAcpi</p> -<p class="MsoNormal"> </p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc440694673">FAQ about WMI and ACPI</a> for Windows 2000 - Instrumentation</h1> -</div> -<p class="Term1">How does WMI find ACPI/ASL code?</p> -<p class="Def1"><span style="layout-grid-mode: line">In ASL, the developer -creates a device with an _HID of </span>PNP0c14<span style="layout-grid-mode: line">. -The operating system enumerates the device and loads the Wmiacpi.sys driver on -top of it.</span></p> -<p class="Term1"><span style="layout-grid-mode: line">How does the MOF -associated with ACPI BIOS get registered?</span></p> -<p class="Def1"><span style="layout-grid-mode: line">It is either a resource -attached to Wmiacpi.sys or another image file such as a resource-only DLL. -</span></p> -<p class="Term1"><span style="layout-grid-mode: line">How does a management -application discover the classes and properties provided by ASL instrumentation?</span></p> -<p class="Def1"><span style="layout-grid-mode: line">By looking in the WMI -namespace of the schema.</span></p> -<p class="Term1"><span style="layout-grid-mode: line">Is the following true? -Because very few ACPI standards exist for instrumentation, most of the ACPI -instrumented features will appear differently on each vendor�s product, and -management applications will have to be �taught� to interpret the varying -classes and methods.</span></p> -<p class="Def1"><span style="layout-grid-mode: line">Microsoft is looking at -standardizing this. Any suggestions are appreciated.</span></p> -<p class="Term1"><span style="layout-grid-mode: line">Who provides the .mof -files for standard ACPI features such as thermal monitoring?</span></p> -<p class="Def1"><span style="layout-grid-mode: line">Windows 2000 has a .mof -file for thermal zone temperature as part of the operating system and -instruments it within Acpi.sys, outside of the mapper.</span></p> -<p class="Def1"><span style="layout-grid-mode: line">Typically, .mof files are -compiled into .bmf files and attached to a driver as a resource. The .bmf files -can be in the ROM or on disk. WMI determines the location of the .mof -information by looking at the registry for the <b>MofImagePath</b> value under -the WMIACPI service. If this does not exist, then WMI looks at the <b>ImagePath</b> -value. If Wmiacpi.sys does not have a .mof resource, then WMI will query the -binary .mof GUID for the .mof information.</span></p> -<p class="Def1"><span style="layout-grid-mode: line">A driver may have a static -list of pre-built .mof files; if so, it can �dynamically� report one of them. -The mechanism is to report the file using a predefined GUID that returns a -binary .mof.</span></p> -<p class="Def1"><span style="layout-grid-mode: line">To dynamically build a .mof -file, a driver would have to build a .mof file and then launch the .mof -compiler, which is difficult. Currently, to do this on the machine running -Wmiacpi.sys, the <b>mofcomp</b> command can be used to load the .mof file -directly into the CIMOM database. </span></p> -<div style="mso-border-top-alt: solid windowtext .5pt; border-left: medium none; border-right: medium none; border-top: 1.0pt solid windowtext; border-bottom: medium none; padding-left: 0in; padding-right: 0in; padding-top: 1.0pt; padding-bottom: 0in"> - <h1><a name="_Toc440694675"><span style="layout-grid-mode: line">ASL Methods - and Sample Code</span></a></h1> -</div> -<p class="MsoNormal"><span style="layout-grid-mode: line">The following list -represents some of the ASL methods defined by the ACPI specification. These -methods are of particular interest for systems management. None of these methods -have been implemented yet within the WMI/ACPI mapper to date. </span>A BIOS -developer, for example, could use these methods to expose data using the mapper. -<span style="layout-grid-mode: line">These methods represent good opportunities -for OEMs to differentiate their products with minimal effort:</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_ACX � Temperature threshold -at which various degrees of active cooling are engaged</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_CRT � Critical temperature -at which system will shut down</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_PSV � Temperature at which -system will throttle CPU in order to cool system</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_LID � Status of the lid -(open or closed)</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_PSR� Whether the machine -running on AC </span></p> -<p class="Le"><span style="layout-grid-mode: line"> </span></p> -<p class="MsoNormal"><span style="layout-grid-mode: line">The same applies for -these method for Control Method Battery devices:</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_BIF � Battery information -such as model, serial number, design capacity, last full charge capacity, -technology, and battery capacity</span></p> -<p class="MsoListBullet"> -<span style="font-family: Symbol; layout-grid-mode: line">�<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman"> -</span></span><span style="layout-grid-mode: line">_BST � Battery state, battery -present rate, battery remaining capacity, and battery voltage present</span></p> -<p class="Le"> </p> -<h2><a name="_Toc445868973"><span style="layout-grid-mode: line">ASL Sample Code -for an Event and Initiating Method</span></a></h2> -<p class="MsoNormal"><span style="layout-grid-mode: line">The following ASL code -implements an event and a method that can be called to initiate that event.</span></p> -<p class="Ex">Device(AMW0)</p> -<p class="Ex">{</p> -<p class="Ex"> // pnp0c14 is Plug and Play ID assigned to WMI mapper</p> -<p class="Ex"> Name(_HID, "*pnp0c14")</p> -<p class="Ex"> Name(_UID, 0x0)</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Description of data and events supported</p> -<p class="Ex"> Name(_WDG, Buffer() {</p> -<p class="Ex" style="margin-right: -.75in"> 0x6a, 0x0f, 0xBC, 0xAB, 0xa1, -0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,</p> -<p class="Ex"> 66, 65, // Object ID (BA)</p> -<p class="Ex"> 3, // Instance Count</p> -<p class="Ex"> 0x01, // Flags (WMIACPI_REGFLAG_EXPENSIVE)</p> -<p class="Ex"> </p> -<p class="Ex" style="margin-right: -.75in"> 0x6b, 0x0f, 0xBC, 0xAB, 0xa1, -0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,</p> -<p class="Ex"> 66, 66, // Object ID (BB)</p> -<p class="Ex"> 3, // Instance Count</p> -<p class="Ex"> 0x02, // Flags (WMIACPI_REGFLAG_METHOD)</p> -<p class="Ex"> </p> -<p class="Ex" style="margin-right: -1.0in"> 0x6c, 0x0f, 0xBC, 0xAB, 0xa1, -0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,</p> -<p class="Ex"> 0xb0, 0, // Notification ID</p> -<p class="Ex"> 1, // Instance Count</p> -<p class="Ex"> 0x08 // Flags (WMIACPI_REGFLAG_EVENT)</p> -<p class="Ex"> })</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Storage for the 3 instances of BA</p> -<p class="Ex"> Name(STB0, Buffer(0x10) { </p> -<p class="Ex"> 1,0,0,0, 2,0,0,0, 3,0,0,0, 4,0,0,0</p> -<p class="Ex"> })</p> -<p class="Ex"> Name(STB1, Buffer(0x10) {</p> -<p class="Ex"> 0,1,0,0, 0,2,0,0, 0,3,0,0, 0,4,0,0</p> -<p class="Ex"> })</p> -<p class="Ex"> Name(STB2, Buffer(0x10) {</p> -<p class="Ex"> 0,0,1,0, 0,0,2,0, 0,0,3,0, 0,0,4,0</p> -<p class="Ex"> })</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Query data block</p> -<p class="Ex"> // Arg0 has the instance being queried</p> -<p class="Ex"> Method(WQBA, 1) {</p> -<p class="Ex"> if (LEqual(Arg0, 0)) {</p> -<p class="Ex"> Return(STB0)</p> -<p class="Ex"> }</p> -<p class="Ex"> if (LEqual(Arg0, 1)) {</p> -<p class="Ex"> Return(STB1)</p> -<p class="Ex"> }</p> -<p class="Ex"> if (LEqual(Arg0, 2)) {</p> -<p class="Ex"> Return(STB2)</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex" style="page-break-after: avoid"> //</p> -<p class="Ex" style="page-break-after: avoid"> // Set Data Block</p> -<p class="Ex" style="page-break-after: avoid"> // Arg0 has the instance being -queried</p> -<p class="Ex" style="page-break-after: avoid"> // Arg1 has the new value for -the data block instance</p> -<p class="Ex" style="page-break-after: avoid"> Method(WSBA, 2) {</p> -<p class="Ex" style="page-break-after: avoid"> if (LEqual(Arg0, 0)) {</p> -<p class="Ex" style="page-break-after: avoid"> Store(Arg1, STB0)</p> -<p class="Ex" style="page-break-after: avoid"> }</p> -<p class="Ex" style="page-break-after: avoid"> if (LEqual(Arg0, 1)) {</p> -<p class="Ex" style="page-break-after: avoid"> Store(Arg1, STB1)</p> -<p class="Ex" style="page-break-after: avoid"> }</p> -<p class="Ex"> if (LEqual(Arg0, 2)) {</p> -<p class="Ex"> Store(Arg1, STB2)</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Storage for data block BB</p> -<p class="Ex"> Name(B0ED, Buffer(0x10) { </p> -<p class="Ex"> 0,0,0,1, 0,0,0,2, 0,0,0,3, 0,0,0,4</p> -<p class="Ex"> })</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Method Execution</p> -<p class="Ex"> // Arg0 is instance being queried</p> -<p class="Ex"> // Arg1 is the method ID</p> -<p class="Ex"> // Arg2 is the method data passed</p> -<p class="Ex"> Method(WMBB, 3) {</p> -<p class="Ex"> if (LEqual(Arg1, 1))</p> -<p class="Ex"> {</p> -<p class="Ex"> Store(Arg3, B0ED)</p> -<p class="Ex"> Notify(AMW0, 0xB0)</p> -<p class="Ex"> Return(Arg3)</p> -<p class="Ex"> } else {</p> -<p class="Ex"> Return(Arg1)</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // More info about an event</p> -<p class="Ex"> // Arg0 is the event ID that was launched (�fired�)</p> -<p class="Ex"> Method(_WED, 1) {</p> -<p class="Ex"> if (LEqual(Arg0, 0xB0)) {</p> -<p class="Ex"> Return(B0ED)</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex">}</p> -<p class="Ex"> </p> -<h2><a name="_Toc445868974">Sample ASL Code Embedding MOD Data in ASL</a></h2> -<p class="MsoNormal" style="page-break-after: avoid">The following sample ASL -code shows another example of implementing an event mechanism using ASL code. -It also provides an example of embedding MOF data into ASL.</p> -<p class="Ex" style="page-break-after: avoid">Device(AMW0)</p> -<p class="Ex" style="page-break-after: avoid">{</p> -<p class="Ex" style="page-break-after: avoid">//</p> -<p class="Ex" style="page-break-after: avoid">// pnp0c14 is the ID assigned by -Microsoft to the WMI to ACPI mapper</p> -<p class="Ex" style="page-break-after: avoid"> Name(_HID, "*pnp0c14")</p> -<p class="Ex" style="page-break-after: avoid"> Name(_UID, 0x0)</p> -<p class="Ex" style="page-break-after: avoid">//</p> -<p class="Ex" style="page-break-after: avoid">// _WDG evaluates to a data -structure that specifies the data blocks supported</p> -<p class="Ex" style="page-break-after: avoid">// by the ACPI device.</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -84.0pt"> -Name(_WDG, Buffer() {</p> -<p class="Ex" style="margin-right: -1.25in"> 0x5a, 0x0f, 0xBC, 0xAB, 0xa1, -0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,</p> -<p class="Ex"> 65, 65, // Object ID (AA)</p> -<p class="Ex"> 2, // Instance Count</p> -<p class="Ex"> 0x01, // Flags WMIACPI_REGFLAG_EXPENSIVE</p> -<p class="Ex"> </p> -<p class="Ex" style="margin-right: -1.25in"> 0x5b, 0x0f, 0xBC, 0xAB, 0xa1, -0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,</p> -<p class="Ex"> 65, 66, // Object ID (AB)</p> -<p class="Ex"> 2, // Instance Count</p> -<p class="Ex"> 0x02, // Flags WMIACPI_REGFLAG_METHOD</p> -<p class="Ex"> </p> -<p class="Ex" style="margin-right: -78.0pt"> 0x5c, 0x0f, 0xBC, 0xAB, 0xa1, -0x8e, 0xd1, 0x11, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10, 0, 0,</p> -<p class="Ex"> 0xa0, 0, // Notification ID</p> -<p class="Ex"> 1, // Instance Count</p> -<p class="Ex"> 0x08, // Flags (WMIACPI_REGFLAG_EVENT)</p> -<p class="Ex"> </p> -<p class="Ex">//</p> -<p class="Ex">// This <span style="layout-grid-mode: line">GUID</span> for -returning the MOF data</p> -<p class="Ex"> </p> -<p class="Ex" style="margin-right: -1.25in"> 0x21, 0x12, 0x90, 0x05, 0x66, -0xd5, 0xd1, 0x11, 0xb2, 0xf0, 0x00, 0xa0, 0xc9, 0x06, 0x29, 0x10,</p> -<p class="Ex"> 66, 65, // Object ID (BA)</p> -<p class="Ex"> 1, // Instance Count</p> -<p class="Ex"> 0x00, // Flags</p> -<p class="Ex"> </p> -<p class="Ex"> })</p> -<p class="Ex"> </p> -<p class="Ex">//</p> -<p class="Ex">// Collection control method. If Arg0 is not zero then collection -for the</p> -<p class="Ex">// data block is enabled. If Arg0 is zero then collection is -disabled. If </p> -<p class="Ex">// this method does not exist then it is assumed that collection -control is</p> -<p class="Ex">// not required. Collection control is only useful when collection -of the </p> -<p class="Ex">// data block causes overhead.</p> -<p class="Ex"> Method(WCAA, 1) {</p> -<p class="Ex"> if (LEqual(Arg0, Zero)) {</p> -<p class="Ex"> // Disable collection of data</p> -<p class="Ex"> } else {</p> -<p class="Ex"> // Enable collection of data</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex" style="page-break-after: avoid">//</p> -<p class="Ex" style="page-break-after: avoid">// Query method for data block AA. -Arg0 has the data block instance index</p> -<p class="Ex" style="page-break-after: avoid"> Method(WQAA, 1) {</p> -<p class="Ex" style="page-break-after: avoid"> if (LEqual(Arg0, Zero)) {</p> -<p class="Ex" style="page-break-after: avoid"> // Query is for first -instance of data block</p> -<p class="Ex" style="page-break-after: avoid"> return(0x10)</p> -<p class="Ex" style="page-break-after: avoid"> } else {</p> -<p class="Ex" style="page-break-after: avoid"> // Query is for second -instance of data block</p> -<p class="Ex" style="page-break-after: avoid"> return(0x20)</p> -<p class="Ex" style="page-break-after: avoid"> }</p> -<p class="Ex" style="page-break-after: avoid"> }</p> -<p class="Ex"> </p> -<p class="Ex">//</p> -<p class="Ex">// Set method for data block AA. If data block is read-only then -this method</p> -<p class="Ex">// does not need to exist. Arg0 has the instance index of the data -block,</p> -<p class="Ex">// Arg1 has the new value for the data block.</p> -<p class="Ex"> Method(WSAA, 2) {</p> -<p class="Ex"> if (LEqual(Arg0, Zero)) {</p> -<p class="Ex"> // Set is for first instance of data block</p> -<p class="Ex"> } else {</p> -<p class="Ex"> // Set is for second instance of data block</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex">//</p> -<p class="Ex">// Event enable/disable method. If event does not need to be -armed/disarmed</p> -<p class="Ex">// then this method is not needed. Arg0 is Zero if event is being -disarmed or</p> -<p class="Ex">// non zero if event is being armed.</p> -<p class="Ex"> Name(ACEN, 0)</p> -<p class="Ex"> Method(WEA0, 1) {</p> -<p class="Ex"> Store(Arg0, ACEN)</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex">//</p> -<p class="Ex">// _WED is called in response to an event launching (�firing�) to -gain additional </p> -<p class="Ex">// information about the event. Arg0 has the NotifyId for the -event launched.</p> -<p class="Ex"> Method(_WED, 1) {</p> -<p class="Ex"> if (LEqual(Arg0, 0xA0)) {</p> -<p class="Ex"> Return(0x100)</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex">//</p> -<p class="Ex">// Evaluation of this method causes the event 0xA0 to be fired. -Since it is</p> -<p class="Ex">// defined by the _WDG method it is callable via WMI. Arg0 has the -instance</p> -<p class="Ex">// index and Arg1 has any input parameters.</p> -<p class="Ex"> Method(WMAB, 3) {</p> -<p class="Ex"> //</p> -<p class="Ex"> // If event was armed then launch it</p> -<p class="Ex"> if (LEqual(ACEN, 1)) {</p> -<p class="Ex"> Notify(AMW0, 0xa0)</p> -<p class="Ex"> }</p> -<p class="Ex"> Return(Arg1)</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex" style="page-break-after: avoid"> Name(WQBA, Buffer(926) {</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x46, -0x4f, 0x4d, 0x42, 0x01, 0x00, 0x00, 0x00, 0x8e, 0x03, 0x00, 0x00, 0xf6, 0x0f, -0x00, 0x00,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x44, -0x53, 0x00, 0x01, 0x1a, 0x7d, 0xda, 0x54, 0x98, 0xdd, 0x87, 0x00, 0x01, 0x06, -0x18, 0x42,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x10, -0x0b, 0x10, 0x0a, 0x0b, 0x21, 0x02, 0xcb, 0x82, 0x50, 0x3c, 0x18, 0x14, 0xa0, -0x25, 0x41,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xc8, -0x05, 0x14, 0x55, 0x02, 0x21, 0xc3, 0x02, 0x14, 0x0b, 0x70, 0x2e, 0x40, 0xba, -0x00, 0xe5,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x28, -0x72, 0x0c, 0x22, 0x82, 0xfd, 0xfb, 0x07, 0xc1, 0x90, 0x02, 0x08, 0x29, 0x84, -0x90, 0x08,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x58, -0x2a, 0x04, 0x8d, 0x10, 0xf4, 0x2b, 0x00, 0xa1, 0x43, 0x01, 0x32, 0x05, 0x18, -0x14, 0xe0,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x14, -0x41, 0x04, 0x41, 0x62, 0x17, 0x2e, 0xc0, 0x34, 0x8c, 0x06, 0xd0, 0x36, 0x8a, -0x64, 0x0b,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xb0, -0x0c, 0x2e, 0x98, 0xa3, 0x08, 0x92, 0xa0, 0xc6, 0x09, 0xa0, 0xc4, 0x4c, 0x00, -0xa5, 0x13,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x5c, -0x36, 0x05, 0x58, 0xc4, 0x96, 0x50, 0x14, 0x0d, 0x22, 0x4a, 0x82, 0x13, 0xea, -0x1b, 0x41,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x13, -0x2a, 0x57, 0x80, 0x64, 0x78, 0x69, 0x1e, 0x81, 0xac, 0xcf, 0x41, 0x93, 0xf2, -0x04, 0xb8,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x9a, -0x05, 0x7a, 0x8c, 0x34, 0xff, 0x30, 0x41, 0x99, 0x14, 0x43, 0x0e, 0x20, 0x24, -0x71, 0x98,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xa0, -0x9d, 0x59, 0xed, 0x18, 0xd2, 0x3d, 0x07, 0x32, 0x4d, 0x60, 0x21, 0x70, 0x9e, -0xb8, 0x19,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xa0, -0xf0, 0x5b, 0x1d, 0x80, 0xe0, 0x2b, 0x1d, 0x15, 0xd2, 0xeb, 0x34, 0x64, 0x72, -0x46, 0x48,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xf8, -0xff, 0x7f, 0x02, 0x26, 0xe3, 0xb7, 0x60, 0x02, 0xa5, 0xd9, 0xb2, 0x82, 0x4b, -0x80, 0xc1,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x68, -0x00, 0x91, 0xa2, 0x69, 0xa3, 0xe6, 0xea, 0xf9, 0x36, 0x8f, 0xaf, 0x59, 0x7a, -0x9e, 0x47,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x7a, -0x34, 0x56, 0x36, 0x05, 0xd4, 0xf8, 0x3d, 0x9d, 0x93, 0xf3, 0x4c, 0x02, 0x1e, -0x9c, 0x61,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x4e, -0x87, 0x83, 0xf1, 0xb1, 0xb1, 0x51, 0x70, 0x74, 0x03, 0xb2, 0x31, 0x38, 0xc6, -0xb0, 0xd1,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x73, -0x39, 0x81, 0x47, 0x82, 0x43, 0x89, 0x7e, 0x0e, 0x6f, 0x00, 0x47, 0x17, 0xe3, -0x04, 0xce,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x27, -0xc1, 0x61, 0x06, 0x39, 0xe3, 0x33, 0xf4, 0x44, 0x2c, 0x68, 0xd6, 0x02, 0x0a, -0x62, 0xa4,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x58, -0xa7, 0xf5, 0x7c, 0x10, 0x8b, 0x41, 0x05, 0x8b, 0x11, 0xdb, 0x50, 0x87, 0x60, -0x18, 0x8b,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x46, -0x11, 0xc8, 0x49, 0x3c, 0x49, 0x30, 0x94, 0x40, 0x51, 0x0c, 0x12, 0xda, 0xc3, -0x36, 0x92,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x81, -0xcf, 0xdb, 0x20, 0xc7, 0x84, 0x51, 0x01, 0x21, 0xcf, 0xe3, 0xd0, 0x28, 0x4d, -0xd0, 0xfd,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x29, -0x40, 0x37, 0x8b, 0x08, 0x67, 0x54, 0xd8, 0x44, 0x64, 0x6d, 0x02, 0xb2, 0x25, -0x40, 0x1c,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xbe, -0x40, 0x1a, 0x43, 0x11, 0x44, 0x84, 0x98, 0x51, 0x8c, 0x19, 0x30, 0x82, 0x51, -0x0e, 0xa6,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x39, -0x10, 0x69, 0x13, 0x30, 0xf6, 0x20, 0xd1, 0x62, 0x31, 0x04, 0xdb, 0x9f, 0x83, -0x30, 0x0e,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x05, -0xa3, 0x03, 0x42, 0xe7, 0x84, 0xc3, 0x3b, 0x30, 0x9f, 0x1e, 0x4c, 0x70, 0xda, -0xcf, 0x07,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xaf, -0x0b, 0x21, 0x8b, 0x17, 0x20, 0x0d, 0x43, 0xf8, 0x09, 0x6a, 0x7d, 0x51, 0xe8, -0x5a, 0xe0,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x34, -0xe0, 0xa8, 0xeb, 0x82, 0x6f, 0x01, 0xbe, 0x01, 0x9c, 0xe0, 0xe3, 0x85, 0xf1, -0x83, 0x1c,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xc1, -0x01, 0x3c, 0x44, 0xbc, 0x1a, 0x78, 0x08, 0x9e, 0xc3, 0xfb, 0x05, 0x3b, 0x0f, -0x60, 0xff,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xff, -0x04, 0x5d, 0xe3, 0xe9, 0x92, 0x70, 0x02, 0x96, 0x83, 0x86, 0x1a, 0xac, 0x2f, -0x00, 0x27,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xe9, -0xc1, 0x1a, 0xae, 0xae, 0xd3, 0x06, 0x7a, 0xba, 0xa7, 0x72, 0x5a, 0xa5, 0x0a, -0x30, 0x7b,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x94, -0x20, 0x04, 0xcf, 0x1e, 0x6c, 0xde, 0x67, 0x73, 0xe6, 0x09, 0x9e, 0x14, 0x3c, -0x05, 0x3e,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x2d, -0xcf, 0xd2, 0x97, 0x0e, 0x5f, 0x09, 0x7c, 0x9f, 0x30, 0x41, 0xf4, 0x27, 0x17, -0x36, 0x1a,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xb8, -0xc3, 0xc6, 0x8d, 0x06, 0xce, 0xe5, 0xe0, 0xb1, 0xc3, 0x33, 0xf7, 0x5c, 0x4d, -0x50, 0xf3,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xe5, -0x42, 0x4e, 0x66, 0x83, 0xd2, 0x03, 0xa2, 0x01, 0x3f, 0x34, 0x60, 0xd0, 0x1f, -0x19, 0xb8,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xc8, -0x8b, 0x02, 0x95, 0x86, 0xac, 0xbf, 0x86, 0x45, 0x8d, 0x9b, 0x12, 0x58, 0xca, -0xa1, 0x82,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xdc, 0x33, 0x7c, 0x9e, 0x38, -0x8c, 0x57, 0x00, 0xcf, 0xe6, 0xa0, 0x7c, 0x73, 0x71, 0xba, 0x7b,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x05, 0x68, 0x66, 0x83, 0xbb, -0x51, 0x80, 0x05, 0xc3, 0xd7, 0x03, 0xdf, 0x30, 0xd8, 0xf1, 0xc3,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xd7, 0x0c, 0x36, 0x24, 0x83, -0x45, 0x89, 0x14, 0x9b, 0x4d, 0xca, 0x03, 0xc0, 0xe0, 0xbd, 0xd7,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xf8, 0x70, 0x61, 0x48, 0x9f, -0x31, 0xe0, 0x1e, 0x05, 0xe0, 0xfd, 0xff, 0xcf, 0x09, 0xe0, 0xb8,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x6d, 0xf8, 0x2a, 0x62, 0x67, -0xf7, 0x0b, 0x5d, 0x6f, 0xb0, 0xf7, 0x1d, 0x78, 0xf8, 0x87, 0x85,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xbb, 0x0b, 0x30, 0xb0, 0x13, -0xc5, 0x1c, 0x78, 0x80, 0xc7, 0x64, 0x1e, 0x78, 0xc0, 0x75, 0x96,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x82, 0x3d, 0x04, 0xae, 0xfa, -0xc0, 0x83, 0xca, 0xf1, 0x6a, 0xa0, 0x67, 0x1e, 0xc0, 0xec, 0xff,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xff, 0xcc, 0x03, 0x8c, 0xe0, -0x9f, 0x79, 0x80, 0x6b, 0xf4, 0x6b, 0x81, 0xde, 0x57, 0x3e, 0xf3,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x00, 0x7c, 0x50, 0x79, 0x33, -0x01, 0xcd, 0xff, 0xff, 0x66, 0x02, 0xe3, 0xe0, 0xe0, 0x83, 0x88,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xaf, 0x32, 0x3e, 0x11, 0x02, -0x93, 0xab, 0x09, 0x70, 0x09, 0x79, 0x27, 0xa2, 0x01, 0x07, 0x41,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xaf, 0x01, 0x5c, 0x0b, 0x88, -0x66, 0xc8, 0xa6, 0x89, 0x25, 0x98, 0xe5, 0x22, 0x40, 0xef, 0x8a,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x3e, 0x2a, 0xf1, 0x31, 0xfa, -0xa8, 0xc4, 0x70, 0xdf, 0x85, 0x8c, 0x7b, 0x7a, 0x67, 0xf7, 0xac,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x84, 0xb9, 0x04, 0xbc, 0x8f, -0x80, 0x65, 0xf2, 0xf8, 0xd3, 0x07, 0x47, 0xf4, 0x85, 0xc1, 0x77,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x23, 0x78, 0x04, 0xd5, 0x5f, -0x65, 0xa8, 0xfe, 0xbd, 0x48, 0x2f, 0x0c, 0xea, 0x2a, 0x03, 0x5c,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xff, 0xff, 0x57, 0x19, 0x36, -0xc8, 0x63, 0x05, 0xcb, 0xf9, 0x11, 0x33, 0xc7, 0xd3, 0x8c, 0xe2,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xa9, 0x78, 0xb8, 0xec, 0x62, -0x65, 0xef, 0x53, 0x25, 0xc7, 0x17, 0x5f, 0xab, 0xf0, 0x20, 0x8f,</p> -<p class="Ex" style="margin-right: -1.25in"> 0x31, 0xbe, 0xc3, 0x80, 0x71, -0x04, 0xef, 0x30, 0xc0, 0x35, 0xf0, 0xcb, 0x41, 0xd7, 0x40, 0xc0,</p> -<p class="Ex" style="margin-right: -1.25in"> 0xf6, 0xff, 0xff, 0x0e, 0x03, -0x96, 0xe0, 0x10, 0xba, 0x06, 0xe2, 0x64, 0x1c, 0x5b, 0xc8, 0x4d,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xca, -0x53, 0x36, 0xc1, 0xa0, 0x13, 0xa6, 0x47, 0x40, 0xf0, 0xdc, 0x2b, 0x7c, 0x98, -0x00, 0xc7,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x48, -0x30, 0xe7, 0x08, 0x9f, 0x1f, 0x7c, 0x7d, 0x78, 0x93, 0x60, 0x37, 0x0e, 0xc3, -0xf8, 0xca,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0x07, -0x0f, 0xf2, 0x15, 0x8b, 0x5d, 0x26, 0xf8, 0x49, 0x0f, 0x6c, 0x17, 0x65, 0x70, -0xdc, 0x7f,</p> -<p class="Ex" style="page-break-after: avoid; margin-right: -1.25in"> 0xe0, -0x5c, 0x94, 0x81, 0x11, 0xee, 0xe3, 0x0f, 0xf8, 0x0f, 0xcb, 0x70, 0xfe, 0xff</p> -<p class="Ex" style="page-break-after: avoid"> })</p> -<p class="Ex" style="page-break-after: avoid"> }</p> -<p class="Ex" style="page-break-after: avoid"> </p> -<h2><a name="_Toc445868975">Sample .Mof File</a></h2> -<p class="MsoNormal" style="page-break-after: avoid">This sample .mof file -complements the previous ASL code.</p> -<p class="Ex" style="page-break-after: avoid">[abstract]</p> -<p class="Ex" style="page-break-after: avoid">class AcpiSampleBase</p> -<p class="Ex" style="page-break-after: avoid">{</p> -<p class="Ex" style="page-break-after: avoid">};</p> -<p class="Ex" style="page-break-after: avoid"> </p> -<p class="Ex" style="page-break-after: avoid">[abstract]</p> -<p class="Ex" style="page-break-after: avoid">class AcpiSampleEvent : WMIEvent</p> -<p class="Ex" style="page-break-after: avoid">{</p> -<p class="Ex" style="page-break-after: avoid">};</p> -<p class="Ex" style="page-break-after: avoid"> </p> -<p class="Ex" style="page-break-after: avoid">[Dynamic, Provider("WMIProv"),</p> -<p class="Ex" style="page-break-after: avoid"> WMI,</p> -<p class="Ex" style="page-break-after: avoid"> Description("Counter for number -of times the case has been hit"),</p> -<p class="Ex" style="page-break-after: avoid"> <span style="layout-grid-mode: line">GUID</span>("{ABBC0f5a-8ea1-11d1-A000-c90629100000}"),</p> -<p class="Ex"> locale("MS\\0x409")]</p> -<p class="Ex">class MachineHitSensor : AcpiSampleBase</p> -<p class="Ex">{</p> -<p class="Ex"> [key, read]</p> -<p class="Ex"> string InstanceName;</p> -<p class="Ex"> [read] Boolean Active;</p> -<p class="Ex"> </p> -<p class="Ex"> [WmiDataId(1),</p> -<p class="Ex"> Description("Number of times the case sensor determined that -the machine has been hit"),</p> -<p class="Ex"> read</p> -<p class="Ex"> ] uint32 NumberTimesHit;</p> -<p class="Ex">};</p> -<p class="Ex"> </p> -<p class="Ex">[Dynamic, Provider("WMIProv"),</p> -<p class="Ex"> WMI,</p> -<p class="Ex"> Description("Counter for number of times the case has been hit"),</p> -<p class="Ex"> <span style="layout-grid-mode: line">GUID</span>("{ABBC0f5b-8ea1-11d1-A000-c90629100000}"),</p> -<p class="Ex"> locale("MS\\0x409")]</p> -<p class="Ex">class MachineHitSimulate : AcpiSampleBase</p> -<p class="Ex">{</p> -<p class="Ex"> [key, read]</p> -<p class="Ex"> string InstanceName;</p> -<p class="Ex"> [read] Boolean Active;</p> -<p class="Ex"> </p> -<p class="Ex"> [WmiMethodId(1),</p> -<p class="Ex"> Description("Simulate hitting the machine")</p> -<p class="Ex"> ] void HitMachine();</p> -<p class="Ex">};</p> -<p class="Ex"> </p> -<p class="Ex">[Dynamic, Provider("WMIProv"),</p> -<p class="Ex"> WMI,</p> -<p class="Ex"> Description("Event generated when machine is hit"),</p> -<p class="Ex"> <span style="layout-grid-mode: line">GUID</span>("{ABBC0f5c-8ea1-11d1-A000-c90629100000}"),</p> -<p class="Ex"> locale("MS\\0x409")]</p> -<p class="Ex">class MachineHitEvent : AcpiSampleEvent</p> -<p class="Ex">{</p> -<p class="Ex"> [key, read]</p> -<p class="Ex"> string InstanceName;</p> -<p class="Ex"> [read] Boolean Active;</p> -<p class="Ex"> </p> -<p class="Ex"> [WmiDataId(1),</p> -<p class="Ex"> Description("Force with which the machine was hit")</p> -<p class="Ex"> ] uint32 Force;</p> -<p class="Ex">};</p> -<p class="Ex"> </p> -<p class="MsoNormal">Appendix C�ASL sample code</p> -<p class="Ex">Device(WMI1) {</p> -<p class="Ex"> Name (_HID, EISAID("PNP0Cxx")) // Plug and Play ID for -mapping driver (TBD)</p> -<p class="Ex"> _UID(1)</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Data block and Wmi method to Object ID mappings</p> -<p class="Ex"> Name(_WDG, Buffer() {</p> -<p class="Ex"> // Object AA - {ABBC0F5A-8EA1-11d1-A53F-00A0C9062910}</p> -<p class="Ex"> 0xABBC0F5A, 0x8ea1, 0x11d1, 0x00, 0xa0, 0xc9, 0x06, -0x29, 0x10,</p> -<p class="Ex"> `A','A', // Object ID</p> -<p class="Ex"> 1, // Instance Count</p> -<p class="Ex"> 0x04, // Flags (WMIACPI_REGFLAG_STRING)</p> -<p class="Ex"> </p> -<p class="Ex"> // Object AB - {ABBC0F5B-8EA1-11d1-A53F-00A0C9062910}</p> -<p class="Ex"> 0xABBC0F5B, 0x8ea1, 0x11d1, 0x00, 0xa0, 0xc9, 0x06, -0x29, 0x10,</p> -<p class="Ex"> `A','B', // Object ID</p> -<p class="Ex"> 2, // Instance Count</p> -<p class="Ex"> 0x01, // Flag (WMIACPI_REGFLAG_EXPENSIVE)</p> -<p class="Ex"> </p> -<p class="Ex"> // Object AC - {ABBC0F5C-8EA1-11d1-A53F-00A0C9062910}</p> -<p class="Ex"> 0xABBC0F5C, 0x8ea1, 0x11d1, 0x00, 0xa0, 0xc9, 0x06, -0x29, 0x10,</p> -<p class="Ex"> `A','C', // Object ID</p> -<p class="Ex"> 1, // Instance Count</p> -<p class="Ex"> 0x06, // Flag (WMIACPI_REGFLAG_METHOD | -_STRING)</p> -<p class="Ex"> </p> -<p class="Ex"> // Event 0x80 - {ABBC0F5D-8EA1-11d1-A53F-00A0C9062910}</p> -<p class="Ex"> 0xABBC0F5D, 0x8ea1, 0x11d1, 0x00, 0xa0, 0xc9, 0x06, -0x29, 0x10,</p> -<p class="Ex"> 0x80, // Notification value</p> -<p class="Ex"> 0, // Reserved</p> -<p class="Ex"> 0, // Instance Count (Not meaningful for -events)</p> -<p class="Ex"> 0x0D // Flags (WMIACPI_REGFLAG_EXPENSIVE | -_STRING |_EVENT)</p> -<p class="Ex"> })</p> -<p class="Ex"> </p> -<p class="Ex"> </p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // IO ports for configuration of Object AB</p> -<p class="Ex"> OperationRegion(CAB0, SystemIo, 0xf8, 1) // Instance 0</p> -<p class="Ex"> OperationRegion(CAB1, SystemIo, 0xfc, 1) // Instance 1</p> -<p class="Ex"> OperationRegion(CABC, SystemIo, 0xf4, 1) // Enable/Disable -Collection</p> -<p class="Ex"> </p> -<p class="Ex"> Method(WQAB, 1) {</p> -<p class="Ex"> //</p> -<p class="Ex"> // Read value from IO space for instance</p> -<p class="Ex"> if (LEqual(Arg0, Zero) {</p> -<p class="Ex"> Store(CAB0, Local0)</p> -<p class="Ex"> } else {</p> -<p class="Ex"> Store(CAB1, Local0)</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // If any of the lower 3 bits are set then return TRUE, -else FALSE</p> -<p class="Ex"> if (And(Local0, 7))</p> -<p class="Ex"> Return( 0x00000001 )</p> -<p class="Ex"> } else {</p> -<p class="Ex"> Return( 0x00000000 )</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Set the values for object AB</p> -<p class="Ex"> Method(WSAB, 2) {</p> -<p class="Ex"> if (LEqual(Arg0, Zero) {</p> -<p class="Ex"> // Change contents of first instance of data block -to </p> -<p class="Ex"> // values in buffer in Arg1</p> -<p class="Ex"> } else {</p> -<p class="Ex"> // Change contents of second instance of data block -to </p> -<p class="Ex"> // values in buffer in Arg1</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Collection notification for object AB</p> -<p class="Ex"> Method(WCAB, 1) {</p> -<p class="Ex"> if (LEqual(Arg0, 1)</p> -<p class="Ex"> {</p> -<p class="Ex"> Store(One, CABC) // If enable, write all 1's to -port</p> -<p class="Ex"> } else {</p> -<p class="Ex"> Store(Zero, CABC) // If disable, write all 0's to -port</p> -<p class="Ex"> }</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Storage for maintaining values for the AA method. </p> -<p class="Ex"> Name(STAA, "XYZZY")</p> -<p class="Ex"> </p> -<p class="Ex"> Method(WQAA, 1) {</p> -<p class="Ex"> //</p> -<p class="Ex"> // Only one instance for AA so no need to check arg</p> -<p class="Ex"> return(STAA);</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> // Data block mapped to Object AA does not support set so it -does not need</p> -<p class="Ex"> // a WSAA method</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Storage for maintaining state of flag that determines -whether to fire (launch)</p> -<p class="Ex"> // the event or not. By default firing is disabled</p> -<p class="Ex"> Name(FIRE, 0)</p> -<p class="Ex"> </p> -<p class="Ex" style="page-break-after: avoid"> //</p> -<p class="Ex" style="page-break-after: avoid"> // This method will reset the -values for AA and send a notification of</p> -<p class="Ex" style="page-break-after: avoid"> // its occurrence</p> -<p class="Ex" style="page-break-after: avoid"> Method(WMAC, 3) {</p> -<p class="Ex" style="page-break-after: avoid"> Store(STAA, Local0)</p> -<p class="Ex" style="page-break-after: avoid"> Store("XYZZY", STAA)</p> -<p class="Ex" style="page-break-after: avoid"> if (LEqual(FIRE, 1))</p> -<p class="Ex"> {</p> -<p class="Ex"> Notify(WMI1, 0x80)</p> -<p class="Ex"> }</p> -<p class="Ex"> Return(Local0)</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Additional information about event</p> -<p class="Ex"> Method(_WED) {</p> -<p class="Ex"> return("Fired")</p> -<p class="Ex"> }</p> -<p class="Ex"> </p> -<p class="Ex"> //</p> -<p class="Ex"> // Event 0x80 Enable/Disable control method</p> -<p class="Ex"> Method(WE80, 1) {</p> -<p class="Ex"> Store(FIRE, Arg0)</p> -<p class="Ex"> }</p> -<p class="Ex">)</p> -<p class="Ex"> </p> -<p class="MsoNormal"><i> </i></p> -<p class="MsoNormal"> </p> - -</body> - -</html> |
