首先是注册表的修改:
[HKEY_LOCAL_MACHINE\Security\ResOver\Bitmaps]
"BaseDll"=string:"batteryIcon.dll"
"BatteryIconIdStart"=dword:100
"BatteryIconLevels"=dword:1
BaseDll points to the DLL from which overridden bitmaps and icons will be loaded. BatteryIconIdStart is the resource ID where the battery icons begin. BatteryIconLevels is the number of levels of granularity to be implemented.
In the override dll, the overridden icons must be in consecutive order so that empty would be at BatteryIconIdStart, then the next level at BatteryIconIdStart + 1, etc.
资源代码:resource.h
#define IDI_ICON1 101
#define IDI_ICON2 102
#define IDI_ICON3 103
#define IDI_ICON4 104
#define IDI_ICON5 105
#define IDI_ICON6 106
#define IDI_ICON7 107
def文件好像写不写都可以,我还是写了,虽然没有导出函数
大侠帮忙!!为啥?