提醒一下,RequestPowerNotifications函数在pm.h中,只有安装了Platform Builder才有这个函数。
我把函数原型附上,
HANDLE RequestDeviceNotifications(
const GUID* devclass,
HANDLE hMsgQ,
BOOL fAll
);
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib