title.c

来自「ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机」· C语言 代码 · 共 37 行

C
37
字号
/*
 *  title.c - title internal command.
 *
 *
 *  History:
 *	1999-02-11 Emanuele Aliberti
 *
 *    30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
 *        Remove all hardcode string to En.rc
 */

#include <precomp.h>

#ifdef INCLUDE_CMD_TITLE


INT cmd_title (LPTSTR cmd, LPTSTR param)
{

	/* Do nothing if no args */
	if (*param == _T('\0'))
		return 0;

	/* Asking help? */
	if (!_tcsncmp(param, _T("/?"), 2))
	{
		ConOutResPaging(TRUE,STRING_TITLE_HELP);
		return 0;
	}

	return SetConsoleTitle (param);
}

#endif /* def INCLUDE_CMD_TITLE */

/* EOF */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?