TrinityCore
Loading...
Searching...
No Matches
ServiceWin32.cpp File Reference
#include "ServiceWin32.h"
#include <array>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <Windows.h>
#include <winsvc.h>
+ Include dependency graph for ServiceWin32.cpp:

Go to the source code of this file.

Typedefs

typedef BOOL(WINAPI * CSD_T) (SC_HANDLE, DWORD, LPCVOID)
 

Functions

void WINAPI ServiceControlHandler (DWORD controlCode)
 
template<size_t size>
void TCharToChar (TCHAR const *src, char(&dst)[size])
 
void WINAPI ServiceMain (DWORD, TCHAR *argv[])
 

Typedef Documentation

◆ CSD_T

typedef BOOL(WINAPI * CSD_T) (SC_HANDLE, DWORD, LPCVOID)

Definition at line 38 of file ServiceWin32.cpp.

Function Documentation

◆ ServiceControlHandler()

void WINAPI ServiceControlHandler ( DWORD  controlCode)

Definition at line 132 of file ServiceWin32.cpp.

+ Here is the caller graph for this function:

◆ ServiceMain()

void WINAPI ServiceMain ( DWORD  ,
TCHAR *  argv[] 
)

Definition at line 180 of file ServiceWin32.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TCharToChar()

template<size_t size>
void TCharToChar ( TCHAR const *  src,
char(&)  dst[size] 
)

Definition at line 172 of file ServiceWin32.cpp.

+ Here is the caller graph for this function: