some more win32k 64 bit fixes
[reactos.git] / reactos / base / shell / cmd / verify.c
1 /*
2 * VERIFY.C - verify internal command.
3 *
4 *
5 * History:
6 *
7 * 31 Jul 1998 (John P Price)
8 * started.
9 *
10 * 18-Jan-1999 (Eric Kohl)
11 * VERIFY is just a dummy under Win32; it only exists
12 * for compatibility!!!
13 *
14 * 20-Jan-1999 (Eric Kohl)
15 * Unicode and redirection ready!
16 *
17 * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
18 * Remove all hardcode string to En.rc
19 */
20
21 #include <precomp.h>
22
23 #ifdef INCLUDE_CMD_VERIFY
24
25
26 /* global verify flag */
27 static BOOL bVerify = FALSE;
28
29
30 INT cmd_verify (LPTSTR cmd, LPTSTR param)
31 {
32 TCHAR szMsg[RC_STRING_MAX_SIZE];
33
34 if (!_tcsncmp (param, _T("/?"), 2))
35 {
36 ConOutResPaging(TRUE,STRING_VERIFY_HELP1);
37 return 0;
38 }
39
40 nErrorLevel = 0;
41
42 if (!*param)
43 {
44 LoadString(CMD_ModuleHandle, STRING_VERIFY_HELP2, szMsg, RC_STRING_MAX_SIZE);
45 ConOutPrintf(szMsg, bVerify ? D_ON : D_OFF);
46 }
47 else if (_tcsicmp (param, D_OFF) == 0)
48 bVerify = FALSE;
49 else if (_tcsicmp (param, D_ON) == 0)
50 bVerify = TRUE;
51 else
52 {
53 ConOutResPuts(STRING_VERIFY_HELP3);
54 }
55
56 return 0;
57 }
58
59 #endif