📄 pwrapi.h
字号:
//////////////////////////////////////////////////////////////
//
// PWRAPI.H
//
// Definitions to be included by an application using the
// power on notification driver, PWRDRV.DLL.
//
//////////////////////////////////////////////////////////////
// Power up detected windows message, sent to the application
// by the driver
#define WM_PWR_POWERUP (WM_USER+0x1000)
// IO control functions to be used in DeviceIoControl calls to
// the driver as the dwIoControlCode parameter.
//
// BOOL DeviceIoControl(
// HANDLE hDevice, // handle to a device, file, or directory
// DWORD dwIoControlCode, // control code of operation to perform
// LPVOID lpInBuffer, // pointer to buffer to supply input data
// DWORD nInBufferSize, // size, in bytes, of input buffer
// LPVOID lpOutBuffer, // pointer to buffer to receive output data
// DWORD nOutBufferSize, // size, in bytes, of output buffer
// LPDWORD lpBytesReturned, // pointer to variable to receive byte count
// LPOVERLAPPED lpOverlapped) // pointer to structure for asynchronous operation
//
// Note:
// These IOCTL defines could be replaced with CTL_CODE macros, if desired.
//
// Get the current power up detection value.
// The lpOutBuffer parameter should be of size DWORD and
// will contain the boolean state of power up detection.
#define IOCTL_PWR_GET_POWERUP_STATE 0x00000001
// Reset the power up detection value.
// Requires no parameters.
#define IOCTL_PWR_RESET_POWERUP_STATE 0x00000002
// Enable the power up detection messaging.
// The lpInBuffer parameter should point to the HWND
// (not contain the HWND itself) for the window to
// receive the power up messages.
#define IOCTL_PWR_ENABLE_POWERUP_MESSAGE 0x00000003
// Disable the power up detection messaging.
// Requires no parameters.
#define IOCTL_PWR_DISABLE_POWERUP_MESSAGE 0x00000004
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -