⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mexit.c

📁 Network time protocol source study
💻 C
字号:
/* * mexit - Used to exit the NTPD daemon *  */#include <stdio.h>#include <windows.h>HANDLE hServDoneEvent = NULL;voidservice_exit(	int status	){	extern int debug;	if (debug) /* did not become a service, simply exit */	    ExitThread((DWORD)status);	else {		/* service mode, need to have the service_main routine		 * register with the service control manager that the 		 * service has stopped running, before exiting		 */		if ((status > 0) && (hServDoneEvent != NULL))		    SetEvent(hServDoneEvent);		ExitThread((DWORD)status);	}}

⌨️ 快捷键说明

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