📄 nopmif.c
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// This source code is licensed under Microsoft Shared Source License
// Version 1.0 for Windows CE.
// For a copy of the license visit http://go.microsoft.com/fwlink/?LinkId=3223.
//
//
// This module contains a version of the Power Manager entry points that
// does not call out to pm.dll. This version of the PM entry points satisfies
// the linker without providing an implementation of the Power Manager
// functions.
//
#include <windows.h>
#include "pmif.h"
BOOL
PM_Init(VOID)
{
return TRUE;
}
VOID
PmPowerHandler(BOOL bOff)
{
}
VOID
PM_Notify(
DWORD Flags,
HPROCESS dwPid,
HTHREAD dwTid
)
{
return;
}
HANDLE
PM_SetPowerRequirement(
PVOID pvDevice,
CEDEVICE_POWER_STATE DeviceState,
ULONG DeviceFlags,
PVOID pvSystemState,
ULONG StateFlags
)
{
SetLastError(ERROR_SERVICE_DOES_NOT_EXIST);
return NULL;
}
DWORD
PM_ReleasePowerRequirement(
HANDLE h
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
DWORD
PM_GetSystemPowerState(
LPWSTR pBuffer,
DWORD Length,
PDWORD pFlags
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
DWORD
PM_SetSystemPowerState(
LPCWSTR pwsState,
DWORD StateFlags,
DWORD Options
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
DWORD
PM_DevicePowerNotify(
PVOID pvDevice,
CEDEVICE_POWER_STATE DeviceState,
DWORD Flags
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
HANDLE
PM_RequestPowerNotifications(
HANDLE hMsgQ,
DWORD Flags
)
{
SetLastError(ERROR_SERVICE_DOES_NOT_EXIST);
return NULL;
}
DWORD
PM_StopPowerNotifications(
HANDLE h
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
HANDLE
PM_RegisterPowerRelationship(
PVOID pvParent,
PVOID pvChild,
PPOWER_CAPABILITIES pCaps,
DWORD Flags
)
{
SetLastError(ERROR_SERVICE_DOES_NOT_EXIST);
return NULL;
}
DWORD
PM_ReleasePowerRelationship(
HANDLE h
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
DWORD
PM_SetDevicePower(
PVOID pvDevice,
DWORD dwDeviceFlags,
CEDEVICE_POWER_STATE dwState
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
DWORD
PM_GetDevicePower(
PVOID pvDevice,
DWORD dwDeviceFlags,
PCEDEVICE_POWER_STATE pdwState
)
{
return ERROR_SERVICE_DOES_NOT_EXIST;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -