文件开始增加:
例如:
#include <Pm.h> //the head HANDLE SetPowerRequirement( PVOID pvDevice, CEDEVICE_POWER_STATE
DeviceState,ULONG DeviceFlags,
PVOID pvSystemState,ULONG StateFlags);
#pragma comment(lib,"Coredll.lib") //the lib for SetPowerRequirement
#pragma comment :http://topic.csdn.net/t/20020810/20/931182.html#
pragma comment的使用:http://www.cppblog.com/xczhang/archive/2008/01/10/40866.html