C# Class TSVCEO.CloudPrint.Service.NativeServiceManager

Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Mostra file Open project: klightspeed/CloudPrintProxy Class Usage Examples

Public Methods

Method Description
CreateService ( string name, string displayname, string cmdline, ServiceRights rights ) : NativeService
Open ( ) : NativeServiceManager
OpenService ( string name, ServiceRights rights ) : NativeService

Protected Methods

Method Description
NativeServiceManager ( ) : System
ReleaseHandle ( ) : bool

Private Methods

Method Description
CloseServiceHandle ( IntPtr hSCObject ) : bool
CreateService ( NativeServiceManager hSCManager, string lpServiceName, string lpDisplayName, ServiceRights dwDesiredAccess, ServiceType dwServiceType, ServiceStartType dwStartType, ServiceErrorControl dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, IntPtr lpdwTagId, string lpDependencies, string lpServiceStartName, string lpPassword ) : NativeService
OpenSCManager ( string lpMachineName, string lpDatabaseName, ServiceManagerRights dwDesiredAccess ) : NativeServiceManager
OpenService ( NativeServiceManager hSCManager, string lpServiceName, ServiceRights dwDesiredAccess ) : NativeService

Method Details

CreateService() public method

public CreateService ( string name, string displayname, string cmdline, ServiceRights rights ) : NativeService
name string
displayname string
cmdline string
rights ServiceRights
return NativeService

NativeServiceManager() protected method

protected NativeServiceManager ( ) : System
return System

Open() public static method

public static Open ( ) : NativeServiceManager
return NativeServiceManager

OpenService() public method

public OpenService ( string name, ServiceRights rights ) : NativeService
name string
rights ServiceRights
return NativeService

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool