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

📄 daemon_win32.h

📁 硬盘各项性能的测试,如温度容量版本健康度型号
💻 H
字号:
/* * os_win32/daemon_win32.h * * Home page of code is: http://smartmontools.sourceforge.net * * Copyright (C) 2004-8 Christian Franke <smartmontools-support@lists.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * You should have received a copy of the GNU General Public License * (for example COPYING); if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */#ifndef DAEMON_WIN32_H#define DAEMON_WIN32_H#define DAEMON_WIN32_H_CVSID "$Id: daemon_win32.h,v 1.7 2008/03/04 22:09:48 ballen4705 Exp $\n"#include <signal.h>// Additional non-ANSI signals#define SIGHUP  (NSIG+1)#define SIGUSR1 (NSIG+2)#define SIGUSR2 (NSIG+3)// Options for Windows servicetypedef struct daemon_winsvc_options_s {	const char * cmd_opt;  // argv[1] option for services	// For service "install" command only:	const char * svcname;  // Service name	const char * dispname; // Service display name	const char * descript; // Service description} daemon_winsvc_options;// This function must be called from main()int daemon_main(const char * ident, const daemon_winsvc_options * svc_opts,                int (*main_func)(int, char **), int argc, char **argv      );// exit(code) returned by a serviceextern int daemon_winsvc_exitcode;// Simulate signal()void (*daemon_signal(int sig, void (*func)(int)))(int);const char * daemon_strsignal(int sig);// Simulate sleep()void daemon_sleep(int seconds);// Disable/Enable consolevoid daemon_disable_console(void);int daemon_enable_console(const char * title);// Detach from consoleint daemon_detach(const char * ident);// Display a message boxint daemon_messagebox(int system, const char * title, const char * text);// Spawn a process and redirect stdioint daemon_spawn(const char * cmd,                 const char * inpbuf, int inpsize,                 char *       outbuf, int outsize );#endif // DAEMON_WIN32_H

⌨️ 快捷键说明

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