能力值:
( LV3,RANK:20 )
|
-
-
2 楼
void translateINI(char* filepath)
{
char szWIN7ico[MAX_PATH];
GetPrivateProfileString(".ShellClassInfo","IconResource","fail",szWIN7ico,MAX_PATH,filepath);
if (strcmp(szWIN7ico,"fail")==0)
return ;
if (strcmp(szWIN7ico,",") == 0)
return ;
char temp[5];
SplitStrSJ(szWIN7ico,strstr(szWIN7ico,",")-szWIN7ico+1 ,strlen(szWIN7ico),temp);
char *p = strrchr(szWIN7ico,',');
*p = 0;
char szXPico[MAX_PATH];
GetPrivateProfileString(".ShellClassInfo","IconFile","fail",szXPico,MAX_PATH,filepath);
if (strcmp(szXPico,"fail")!=0)
return ;
WritePrivateProfileString(".ShellClassInfo","IconFile",szWIN7ico,filepath);
WritePrivateProfileString(".ShellClassInfo","IconIndex",temp,filepath);
SendMessage(hListBox,LB_ADDSTRING,0,(LPARAM)filepath);
//DebugOut(filepath);
//MessageBox(NULL,szWIN7ico,temp,MB_OK);
}
|
能力值:
( LV4,RANK:50 )
|
-
-
3 楼
[.ShellClassInfo]
IconResource=G:\icos\usa\f132d81f564198fb4aa9ef7b0733d94515.ico,0
IconFile=G:\icos\usa\f132d81f564198fb4aa9ef7b0733d94515.ico
IconIndex=0
结构是这样不就可以了么?
话说 INI里面名字不同是可以共存的.你为啥非要改?
|
能力值:
( LV3,RANK:20 )
|
-
-
4 楼
[QUOTE=遗失灵魂;1214734][.ShellClassInfo]
IconResource=G:\icos\usa\f132d81f564198fb4aa9ef7b0733d94515.ico,0
IconFile=G:\icos\usa\f132d81f564198fb4aa9ef7b0733d94515.ico
IconIn...[/QUOTE]
这就是我修改后的结构..
|
能力值:
( LV4,RANK:50 )
|
-
-
5 楼
还是PsSetLoadImageNotifyRoutine 然后在NotifyRoutine中检测ini是否存在+是否支持双系统 更好吧?
|