DOCERR: Power Control Messages in VxDs - Definitions Moved

Last reviewed: January 7, 1996
Article ID: Q141938
The information in this article applies to:
  • Microsoft Win32 Device Development Kit (DDK) for Microsoft 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.

REFERENCES

Windows 95 and Windows 3.1 SDK and DDK as shipped.


Additional reference words: 4.00 Windows 95 header 3.1 include power
KBCategory: kbref kbdocerr
KBSubcategory:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 7, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.