EaseFilter Demo Project
WindowsService.cpp File Reference
#include "stdafx.h"
#include "Tools.h"
#include "FilterAPI.h"
#include "UnitTest.h"
#include "WindowsService.h"
#include "FilterWorker.h"

Go to the source code of this file.

Macros

#define SERVICE_NAME   _T("EaseFilter Service")
 
#define registerKey   "********************************"
 

Functions

int StartWindowsService ()
 
VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv)
 
VOID WINAPI ServiceCtrlHandler (DWORD CtrlCode)
 
DWORD WINAPI ServiceWorkerThread (LPVOID lpParam)
 

Variables

SERVICE_STATUS g_ServiceStatus = {0}
 
SERVICE_STATUS_HANDLE g_StatusHandle = NULL
 
HANDLE g_ServiceStopEvent = INVALID_HANDLE_VALUE
 

Macro Definition Documentation

◆ registerKey

#define registerKey   "********************************"

Definition at line 28 of file WindowsService.cpp.

◆ SERVICE_NAME

#define SERVICE_NAME   _T("EaseFilter Service")

Definition at line 20 of file WindowsService.cpp.

Function Documentation

◆ ServiceCtrlHandler()

VOID WINAPI ServiceCtrlHandler ( DWORD  CtrlCode)

Definition at line 148 of file WindowsService.cpp.

◆ ServiceMain()

VOID WINAPI ServiceMain ( DWORD  argc,
LPTSTR *  argv 
)

Definition at line 51 of file WindowsService.cpp.

◆ ServiceWorkerThread()

DWORD WINAPI ServiceWorkerThread ( LPVOID  lpParam)

Definition at line 188 of file WindowsService.cpp.

◆ StartWindowsService()

int StartWindowsService ( )

Definition at line 30 of file WindowsService.cpp.

Variable Documentation

◆ g_ServiceStatus

SERVICE_STATUS g_ServiceStatus = {0}

Definition at line 22 of file WindowsService.cpp.

◆ g_ServiceStopEvent

HANDLE g_ServiceStopEvent = INVALID_HANDLE_VALUE

Definition at line 24 of file WindowsService.cpp.

◆ g_StatusHandle

SERVICE_STATUS_HANDLE g_StatusHandle = NULL

Definition at line 23 of file WindowsService.cpp.

Social Network


Services Overview

Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.

Contact Us

You are welcome to contact us for salse or partnership.

Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com