Get the Application Data Path,Delete The Fetion Pass Save File

/*

by c4rp3nt3r@gmail.com

http://c4rp3nt3r.bolgspot.com/

*/

#include
#include
#include

//获取Application Data文件夹路径,删除飞信保存密码的文件!
int mian(int argc,char **argv){

char szPath[256];
HRESULT ret= SHGetFolderPath(NULL, CSIDL_APPDATA , NULL, 0, szPath );
strcat(szPath,"file://fetion//configuration.dat");
//printf("appdata---------%s",szPath );
if (GetFileAttributes(szPath ) != -1)
DeleteFile(szPath );

return 0;

}

0 评论: