DOC: Windows 9x: WM_DEVICECHANGE DBT_xxx lParam Values (263054)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0
  • Microsoft Windows 95 Driver Development Kit (DDK)
  • Microsoft Windows 98 Driver Development Kit (DDK)

This article was previously published under Q263054

SUMMARY

The Win32 SDK incorrectly documents the lParam value for some WM_DEVICECHANGE messages. In particular, WM_DEVICECHANGE messages with the following wParam values have incorrect lParam values listed in the SDK:
  • DBT_DEVICEARRIVAL
For these messages, the SDK states that the lParam value is set to the address of a DEV_BROADCAST_HDR structure. In fact, in Microsoft Windows 95 and Microsoft Windows 98, Configuration Manager sets the lParam value to the address of a DEV_BROADCAST_DEVNODE structure, as defined in the Dbt.h file. The dbcd_devicetype element of this structure is set to DBT_DEVTYP_DEVNODE, and the dbcd_devnode element contains the actual devnode of the device.

REFERENCES

See the Windows 95 and Windows 98 DDK for more information on Plug and Play and Configuration Manager functions.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbdocerr kbinfo KB263054