#include "stdafx.h" #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { if (argc > 2) { bool b1 = true; LPTSTR opt = argv[1]; if (_tcslen(opt) == 1) { TCHAR o = opt[0]; if ((o == 'e') || (o == 'd')) { b1 = false; LPTSTR fn = argv[2]; if (o == 'e') { if (EncryptFile(fn)) _tprintf_s(_T("SUCCESS!!! Your file has been encrypted!\n")); else _tprintf_s(_T("I can\'t encrypt your fucking file! What a bullshit?!\n")); } else { if (DecryptFile(fn, 0)) _tprintf_s(_T("SUCCESS!!! Your file has been decrypted!\n")); else _tprintf_s(_T("I can\'t decrypt your fucking file! What a bullshit?!\n")); } } } if (b1) _tprintf_s(_T("I can\'t understand what you want, motherfucker! Use e or d!\n")); } else _tprintf_s(_T("English, motherfucker! Do you speak it?\nthis_shit.exe e|d filename\n")); return 0; } |