66738f894804fd16606227ed99dd7966b82d5b38
[reactos.git] / base / shell / cmd / title.c
1 /*
2 * title.c - title internal command.
3 *
4 *
5 * History:
6 * 1999-02-11 Emanuele Aliberti
7 *
8 * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
9 * Remove all hardcoded strings in En.rc
10 */
11
12 #include "precomp.h"
13
14 #ifdef INCLUDE_CMD_TITLE
15
16 extern BOOL bTitleSet;
17
18 INT cmd_title(LPTSTR param)
19 {
20 /* Do nothing if no args */
21 if (*param == _T('\0'))
22 return 0;
23
24 /* Asking help? */
25 if (!_tcsncmp(param, _T("/?"), 2))
26 {
27 ConOutResPaging(TRUE, STRING_TITLE_HELP);
28 return 0;
29 }
30
31 bTitleSet = TRUE;
32 return ConSetTitle(param);
33 }
34
35 #endif /* INCLUDE_CMD_TITLE */
36
37 /* EOF */