22 lines
464 B
C
22 lines
464 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
bool EnsureWin32Service(
|
|
const wchar_t* serviceName,
|
|
const wchar_t* binaryPath,
|
|
bool startNow);
|
|
|
|
bool EnsureLocalSystemService(
|
|
const wchar_t* serviceName,
|
|
const wchar_t* binaryPath,
|
|
bool startNow,
|
|
bool restartOnFailure,
|
|
const wchar_t* displayName);
|
|
|
|
bool IsServiceRunning(const wchar_t* serviceName);
|
|
|
|
bool SetServiceDescription(
|
|
const wchar_t* serviceName,
|
|
const wchar_t* description);
|