能力值:
(RANK:170 )
|
-
-
2 楼
char szBuf[0x200] = { 0 };
GetModuleFileName(GetModuleHandle(DLL_NAME),szBuf,sizeof(szBuf));
for (i = strlen(szBuf) -1; i >0; i-- )
{
if (szBuf[i] == '\\')
{
szBuf[i+1] = 0;
break;
}
}
strcat(szBuf, "\\filetowrite.txt");
DLLNAME为注入得dll名字,最后szBuf中为要写的文件路径
|
能力值:
( LV3,RANK:20 )
|
-
-
3 楼
[QUOTE=Aker;907546]char szBuf[0x200] = { 0 };
GetModuleFileName(GetModuleHandle(DLL_NAME),szBuf,sizeof(szBuf));
for (i = strlen(szBuf) -1; i >0; i-- )
{
...[/QUOTE]
谢谢,灰常感谢
|
|
|