libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::NTUtils::ServiceManipulation Class Reference

#include <ServiceManipulation.hpp>

Inheritance diagram for jmmcg::NTUtils::ServiceManipulation:
[legend]
Collaboration diagram for jmmcg::NTUtils::ServiceManipulation:
[legend]

Public Types

typedef win_exception exception_type
 

Public Member Functions

__stdcall ServiceManipulation (const TCHAR *const machine=NULL)
 
__stdcall ~ServiceManipulation (void)
 
void __fastcall OpenService (const TCHAR *const service_name, const DWORD access)
 
unsigned long __fastcall ControlService (const DWORD dwControl, SERVICE_STATUS &status) noexcept(true)
 
unsigned long __fastcall StartService (const DWORD num_args, const TCHAR **args) noexcept(true)
 

Additional Inherited Members

- Protected Member Functions inherited from jmmcg::NTUtils::LoadLibraryWrapper
 LoadLibraryWrapper (const TCHAR *const lib_name)
 
virtual ~LoadLibraryWrapper (void)
 
const HMODULE & Handle (void) const noexcept(true)
 

Detailed Description

Definition at line 28 of file ServiceManipulation.hpp.

Member Typedef Documentation

◆ exception_type

Definition at line 30 of file ServiceManipulation.hpp.

Constructor & Destructor Documentation

◆ ServiceManipulation()

__stdcall jmmcg::NTUtils::ServiceManipulation::ServiceManipulation ( const TCHAR *const  machine = NULL)

◆ ~ServiceManipulation()

ServiceManipulation::~ServiceManipulation ( void  )

Definition at line 75 of file ServiceManipulation.cpp.

Member Function Documentation

◆ ControlService()

unsigned long __fastcall jmmcg::NTUtils::ServiceManipulation::ControlService ( const DWORD  dwControl,
SERVICE_STATUS &  status 
)
inlinenoexcept

Definition at line 36 of file ServiceManipulation.hpp.

◆ OpenService()

void ServiceManipulation::OpenService ( const TCHAR *const  service_name,
const DWORD  access 
)

Definition at line 85 of file ServiceManipulation.cpp.

◆ StartService()

unsigned long __fastcall jmmcg::NTUtils::ServiceManipulation::StartService ( const DWORD  num_args,
const TCHAR **  args 
)
inlinenoexcept

Definition at line 37 of file ServiceManipulation.hpp.


The documentation for this class was generated from the following files: