head.cpp

来自「一个Windows下的Linux专用虚拟机」· C++ 代码 · 共 45 行

CPP
45
字号
/* * This source code is a part of coLinux source package. * * Dan Aloni <da-x@gmx.net>, 2003-2004 (c) * * The code is licensed under the GPL. See the COPYING file at * the root directory. * */#include <windows.h>extern "C" {#include <colinux/common/debug.h>#include <colinux/os/user/misc.h>}#include <colinux/user/console-base/main.h>#include "console.h"COLINUX_DEFINE_MODULE("colinux-console-nt");int main(int argc, char **argv){	int status;	global_window = new console_window_NT_t;	if (!global_window) {		co_terminal_print("Unable to create console window");		return -1; 	}	try {		status = co_user_console_main(argc, argv);	} catch(...) {		co_debug("The console program encountered an exception.");		status = -1;	}	delete global_window;	return status;}

⌨️ 快捷键说明

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