Public Member Functions

AppSecInc::Service::ServiceManager Class Reference

Service manager. More...

#include <ServiceManager.h>

List of all members.

Public Member Functions

 ServiceManager ()
virtual ~ServiceManager ()
void Open (const std::wstring &computer_name, const std::wstring &database_name, DWORD access=SC_MANAGER_ALL_ACCESS)
 open the Service manager object on a computer
void Open (DWORD access=SC_MANAGER_ALL_ACCESS)
 open the Service manager on the local computer with all access
void Close ()
 close a previously opened service manager object
bool IsOpen () const
 returns true if service manager is open
SC_HANDLE GetHandle () const
 return the policy handle
std::list< ServiceStatusProcessGetServices (DWORD service_type=SERVICE_WIN32, DWORD service_state=SERVICE_STATE_ALL, LPCTSTR service_group_name=NULL) const
 return a list of services
bool ServiceExists (const std::wstring &name)
 return true if the service exists

Detailed Description

Service manager.


Constructor & Destructor Documentation

ServiceManager::ServiceManager ( )
ServiceManager::~ServiceManager ( ) [virtual]

Member Function Documentation

void ServiceManager::Close ( )

close a previously opened service manager object

SC_HANDLE AppSecInc::Service::ServiceManager::GetHandle ( ) const [inline]

return the policy handle

std::list< ServiceStatusProcess > ServiceManager::GetServices ( DWORD  service_type = SERVICE_WIN32,
DWORD  service_state = SERVICE_STATE_ALL,
LPCTSTR  service_group_name = NULL 
) const

return a list of services

bool AppSecInc::Service::ServiceManager::IsOpen ( ) const [inline]

returns true if service manager is open

void ServiceManager::Open ( DWORD  access = SC_MANAGER_ALL_ACCESS)

open the Service manager on the local computer with all access

void ServiceManager::Open ( const std::wstring &  computer_name,
const std::wstring &  database_name,
DWORD  access = SC_MANAGER_ALL_ACCESS 
)

open the Service manager object on a computer

bool ServiceManager::ServiceExists ( const std::wstring &  name)

return true if the service exists


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


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com