[NET]
[reactos.git] / reactos / 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
17 INT cmd_title (LPTSTR param)
18 {
19 /* Do nothing if no args */
20 if (*param == _T('\0'))
21 return 0;
22
23 /* Asking help? */
24 if (!_tcsncmp(param, _T("/?"), 2))
25 {
26 ConOutResPaging(TRUE,STRING_TITLE_HELP);
27 return 0;
28 }
29
30 return SetConsoleTitle (param);
31 }
32
33 #endif /* def INCLUDE_CMD_TITLE */
34
35 /* EOF */