A unique Plug & Play ID will be generated for the device using the following algorithm: The MANUFACTURER & MODEL fields will be concatenated, and then a 4 digit checksum will be generated on the resulting string. After the check sum is computed the string will be truncated to 20 characters if its length exceeds 20 characters. The checksum will then be converted to a 4 character string, and appended to the above truncated string, resulting in a string of 24 characters or less.A code fragment that illustrates how the checksum & device ID values are generated is listed at the end of this document.
For example, the following device ID string will be generated for the HP LaserJet 4P printer:
"Hewlett-PackardHP_La7EE2"
since the MFG field is Hewlett-Packard, and the MDL field is HP LaserJet 4P.
The parallel port enumerator will then prepend "LPTENUM\" (minus quotes) to the string generated above, and the resulting string will be the Plug and Play ID value. The Plug & Play ID will be used to search all known device information files (INF in Windows) available on the host for a driver which will support the device. Note the ordering of device ID values listed in the INF files will be significant in determining the device driver which is the "best match" for a given device. See the section below on "Ordering Device ID values" for a more detailed description.
http://www.osr.com/ddk/gs_sign_8k4n.htm
http://www.google.com/search?hl=en&lr=lang_en&safe=off&q=lptenum+device-id+&btnG=Google+Search
file: /Techref/os/win/ddk/plugandplayid.htm, 2KB, , updated: 2001/4/16 11:40, local time: 2024/8/31 17:23,
3.147.237.38:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/ddk/plugandplayid.htm"> os win ddk plugandplayid</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.