标签:
BOOL deleteself() { char szFile[MAX_PATH], szCmd[MAX_PATH]; if((GetModuleFileNameA(0,szFile,MAX_PATH)!=0) && (GetShortPathNameA(szFile,szFile,MAX_PATH)!=0)) {
strcpy(szCmd,"/c del "); strcat(szCmd,szFile); strcat(szCmd," >> NUL"); if((GetEnvironmentVariableA("ComSpec",szFile,MAX_PATH)!=0) && ((INT)ShellExecuteA(0,0,szFile,szCmd,0,SW_HIDE)>32)) return TRUE; }
return TRUE; }
标签:
原文地址:http://www.cnblogs.com/killbit/p/4524388.html