ReactOS  0.4.14-dev-815-ge410a12
title.c
Go to the documentation of this file.
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 
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  {
28  return 0;
29  }
30 
31  /* Set the new console title, and tell CMD to not reset it */
32  bTitleSet = FALSE;
33  return ConSetTitle(param);
34 }
35 
36 #endif /* INCLUDE_CMD_TITLE */
37 
38 /* EOF */
#define TRUE
Definition: types.h:120
BOOL bTitleSet
Definition: cmd.c:166
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
Definition: console.c:182
int32_t INT
Definition: typedefs.h:56
CHAR * LPTSTR
Definition: xmlstorage.h:192
unsigned int BOOL
Definition: ntddk_ex.h:94
#define _T(x)
Definition: vfdio.h:22
GLfloat param
Definition: glext.h:5796
BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle)
Definition: console.c:280
#define STRING_TITLE_HELP
Definition: resource.h:175
INT cmd_title(LPTSTR param)
Definition: title.c:18
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)
Definition: tcsncmp.h:9