C# Class PoshExecSvr.Service1

Inheritance: System.ServiceProcess.ServiceBase
Datei anzeigen Open project: adamdriscoll/PoshInternals Class Usage Examples

Public Methods

Method Description
Listen ( string pipeName ) : void
Service1 ( ) : System
Start ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnStart ( string args ) : void

Private Methods

Method Description
CreateProcess ( string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, [ lpStartupInfo, PROCESS_INFORMATION &lpProcessInformation ) : bool
CreateProcessAsUser ( IntPtr hToken, string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, STARTUPINFO &lpStartupInfo, PROCESS_INFORMATION &lpProcessInformation ) : bool
InitializeComponent ( ) : void
WTSGetActiveConsoleSessionId ( ) : UInt32
WTSQueryUserToken ( UInt32 sessionId, IntPtr &handle ) : bool
WaitForConnectionCallBack ( IAsyncResult iar ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Listen() public method

public Listen ( string pipeName ) : void
pipeName string
return void

OnStart() protected method

protected OnStart ( string args ) : void
args string
return void

Service1() public method

public Service1 ( ) : System
return System

Start() public method

public Start ( ) : void
return void