[cpp] view plaincopyprint?
- CString strDir("d:\\zzz");
- CString strAuto("d:\\zzz\\autorun.inf");
- CString strImm("d:\\zzz\\autorun.inf\\Immunity...\\");
- void Immunity(LPCTSTR lpszDirectory)
- {
- BOOL bRet = CreateDirectory(strDir, NULL);
- bRet = CreateDirectory(strAuto, NULL);
- bRet = CreateDirectory(strImm, NULL);
- }
- void UnImmunity(LPCTSTR lpszDirectory)
- {
- BOOL bRet = RemoveDirectory(strImm);
- bRet = RemoveDirectory(strAuto);
- bRet = RemoveDirectory(strDir);
- }
时间: 2024-10-11 00:51:37