Files
2026-07-09 11:27:59 +08:00

51 lines
1.2 KiB
C

/*******************************************************************************
*
* 模 块 名:DBService 文件名:DBService.h
* 相关文件:DBService.c
* 提交日期:2012.2.1 作 者:Alex
* 版 本:0.1
* 修改记录:
* 日 期 版本 修改人 修改内容
*
*
*******************************************************************************/
#ifndef DBServiceH
#define DBServiceH
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _DBSERVICE_C
int g_eDebug = 0;
int g_iChkStyle = 0;
#else
extern int g_eDebug;
extern int g_iChkStyle;
#endif
#define SZAPPNAME "DBService"
#define SZSERVICENAME "DBService"
#define SZSERVICEDISPLAYNAME "DBService"
#define SZSTOPEVENTNAME "DBService"
//user-defined ServiceStart and ServiceStop
VOID ServiceStart(DWORD dwArgc, LPTSTR *lpszArgv);
VOID ServiceStop();
//Sets the current status of the service and
//reports it to the Service Control Manager
BOOL ReportStatusToSCMgr(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint);
//Allows any thread to log an error message
void AddToMessageLog(LPTSTR lpszMsg);
LPTSTR GetLastErrorText( LPTSTR lpszBuf, DWORD dwSize );
#ifdef __cplusplus
}
#endif
#endif