ReactOS
0.4.16-dev-91-g764881a
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
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
/* 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 */
ConOutResPaging
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
Definition:
console.c:178
ConSetTitle
BOOL ConSetTitle(IN LPCWSTR lpConsoleTitle)
Definition:
console.c:276
STRING_TITLE_HELP
#define STRING_TITLE_HELP
Definition:
resource.h:177
TRUE
#define TRUE
Definition:
types.h:120
FALSE
#define FALSE
Definition:
types.h:117
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
param
GLfloat param
Definition:
glext.h:5796
_tcsncmp
#define _tcsncmp
Definition:
tchar.h:1428
bTitleSet
BOOL bTitleSet
Definition:
cmd.c:167
cmd_title
INT cmd_title(LPTSTR param)
Definition:
title.c:18
INT
int32_t INT
Definition:
typedefs.h:58
_T
#define _T(x)
Definition:
vfdio.h:22
precomp.h
LPTSTR
CHAR * LPTSTR
Definition:
xmlstorage.h:192
base
shell
cmd
title.c
Generated on Sat Oct 5 2024 06:02:24 for ReactOS by
1.9.6