#include #include #include #include DWORD FileCreate(WCHAR *FileName, WCHAR *Time); DWORD DirCreate(WCHAR *FileName, WCHAR *Time, WCHAR *Modify, WCHAR *buf, WCHAR *Time2); PWCHAR * MainConvertArgV( DWORD ArgC, PCHAR *ArgV ) /*++ Routine Description: Convert short char ArgV into wide char ArgV Arguments: ArgC - From main ArgV - From main Return Value: Address of the new ArgV --*/ { #undef DEBSUB #define DEBSUB "MainConvertArgV:" PWCHAR *wideArgV; wideArgV = (PWCHAR*)malloc((ArgC + 1) * sizeof(PWCHAR)); wideArgV[ArgC] = NULL; while (ArgC-- >= 1) { wideArgV[ArgC] = (PWCHAR)malloc((strlen(ArgV[ArgC]) + 1) * sizeof(WCHAR)); wsprintf(wideArgV[ArgC], L"%hs", ArgV[ArgC]); if (wideArgV[ArgC]) { _wcslwr(wideArgV[ArgC]); } } return wideArgV; } VOID __cdecl main(DWORD argc, CHAR **argv) { if(argc != 3) { printf("Usage\n"); printf("lockedfile file|dir