Microsoft KB Archive/141938

{|
 * width="100%"|

DOCERR: Power Control Messages in VxDs - Definitions Moved

 * }

Q141938

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) Windows 95

-

SUMMARY
The Power Event message handling that VxDs can monitor through their control procedure is documented in several places, including Vmm.doc and Vmm.hlp in the DDK. Note that the Power.inc file listed in the sample code in the text of the articles, is not correct.

MORE INFORMATION
For reference, the messages are listed correctly as:

Type of power event  Can be one of these values

PWR_CRITICALRESUME   Resume critical operations after suspension. PWR_SUSPENDREQUEST   Suspend operation. PWR_SUSPENDRESUME    Resume operation after suspension.

Return Address of the doubleword that receives the return value can be one of these values:

PWR_FAIL             Virtual device failed to process the event. PWR_OK               Virtual device processed the event successfully.

All other values are reserved. However in the samples, the Power.inc file is specified. This does not exist in the SDK or DDK. These are actually defined as follows:


 * SDK/DDK 95 in both Sdk\H\Winuser.h and Ddk\Inc16\Windows.h
 * SDK 3.1 in Sdk\Include\Windows.h
 * The values defined have not changed from Windows 3.1 to Windows 95.