⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.serviceprocess.cs

📁 研讀原始碼的好工具
💻 CS
📖 第 1 页 / 共 3 页
字号:
     I4 STATE_START_PENDING;
     I4 STATE_STOPPED;
     I4 STATE_STOP_PENDING;
     I4 STATUS_ACTIVE;
     I4 STATUS_INACTIVE;
     I4 STATUS_ALL;
     I4 POLICY_VIEW_LOCAL_INFORMATION;
     I4 POLICY_VIEW_AUDIT_INFORMATION;
     I4 POLICY_GET_PRIVATE_INFORMATION;
     I4 POLICY_TRUST_ADMIN;
     I4 POLICY_CREATE_ACCOUNT;
     I4 POLICY_CREATE_SECRET;
     I4 POLICY_CREATE_PRIVILEGE;
     I4 POLICY_SET_DEFAULT_QUOTA_LIMITS;
     I4 POLICY_SET_AUDIT_REQUIREMENTS;
     I4 POLICY_AUDIT_LOG_ADMIN;
     I4 POLICY_SERVER_ADMIN;
     I4 POLICY_LOOKUP_NAMES;
     I4 POLICY_ALL_ACCESS;
     I4 STATUS_OBJECT_NAME_NOT_FOUND;
     String DATABASE_ACTIVE;
     String DATABASE_FAILED;

     I OpenService( I databaseHandle,  String serviceName,  I4 access);
     I RegisterServiceCtrlHandler( String serviceName,  Class System.Delegate callback);
     I RegisterServiceCtrlHandlerEx( String serviceName,  Class System.Delegate callback,  I userData);
     Boolean SetServiceStatus( I serviceStatusHandle,  Ptr ValueClass SERVICE_STATUS status);
     Boolean StartServiceCtrlDispatcher( I entry);
     I CreateService( I databaseHandle,  String serviceName,  String displayName,  I4 access,  I4 serviceType,  I4 startType,  I4 errorControl,  String binaryPath,  String loadOrderGroup,  I pTagId dependencies,  servicesStartName,  password);
     Boolean DeleteService( I serviceHandle);
     I4 LsaOpenPolicy( Class LSA_UNICODE_STRING systemName,  I pointerObjectAttributes,  I4 desiredAccess,  ByRef I pointerPolicyHandle);
     I4 LsaAddAccountRights( I policyHandle,  SZArray UI1 accountSid,  Class LSA_UNICODE_STRING userRights,  I4 countOfRights);
     I4 LsaRemoveAccountRights( I policyHandle,  SZArray UI1 accountSid,  Boolean allRights,  Class LSA_UNICODE_STRING userRights,  I4 countOfRights);
     I4 LsaEnumerateAccountRights( I policyHandle,  SZArray UI1 accountSid,  ByRef I pLsaUnicodeStringUserRights,  ByRef I4 RightsCount);
     Boolean LookupAccountName( String systemName,  String accountName,  SZArray UI1 sid,  SZArray I4 sidLen,  SZArray Char refDomainName,  SZArray I4 domNameLen,  SZArray I4 sidNameUse);
     Void System.ServiceProcess.NativeMethods();
     Void System.ServiceProcess.NativeMethods();


    }

class StructFormat : System.Enum
    {
     I4 value__;
     ValueClass StructFormat Ansi;
     ValueClass StructFormat Unicode;
     ValueClass StructFormat Auto;



    }

class ENUM_SERVICE_STATUS : System.Object
    {
     String serviceName;
     String displayName;
     I4 serviceType;
     I4 currentState;
     I4 controlsAccepted;
     I4 win32ExitCode;
     I4 serviceSpecificExitCode;
     I4 checkPoint;
     I4 waitHint;

     Void ENUM_SERVICE_STATUS();


    }

class ENUM_SERVICE_STATUS_PROCESS : System.Object
    {
     String serviceName;
     String displayName;
     I4 serviceType;
     I4 currentState;
     I4 controlsAccepted;
     I4 win32ExitCode;
     I4 serviceSpecificExitCode;
     I4 checkPoint;
     I4 waitHint;
     I4 processID;
     I4 serviceFlags;

     Void ENUM_SERVICE_STATUS_PROCESS();


    }

class SERVICE_STATUS : System.ValueType
    {
     I4 serviceType;
     I4 currentState;
     I4 controlsAccepted;
     I4 win32ExitCode;
     I4 serviceSpecificExitCode;
     I4 checkPoint;
     I4 waitHint;



    }

class QUERY_SERVICE_CONFIG : System.Object
    {
     I4 dwServiceType;
     I4 dwStartType;
     I4 dwErrorControl;
     Ptr Char lpBinaryPathName;
     Ptr Char lpLoadOrderGroup;
     I4 dwTagId;
     Ptr Char lpDependencies;
     Ptr Char lpServiceStartName;
     Ptr Char lpDisplayName;

     Void QUERY_SERVICE_CONFIG();


    }

class ENTRY : System.Object
    {
     I name;
     Class System.Delegate callback;

     Void ENTRY();


    }

class LSA_UNICODE_STRING : System.Object
    {
     I2 length;
     I2 maximumLength;
     String buffer;

     Void LSA_UNICODE_STRING();


    }

class LSA_UNICODE_STRING_withPointer : System.Object
    {
     I2 length;
     I2 maximumLength;
     I pwstr;

     Void LSA_UNICODE_STRING_withPointer();


    }

class LSA_OBJECT_ATTRIBUTES : System.Object
    {
     I4 length;
     I4 rootDirectory;
     I4 pointerLsaString;
     I4 attributes;
     I4 pointerSecurityDescriptor;
     I4 pointerSecurityQualityOfService;

     Void LSA_OBJECT_ATTRIBUTES();


    }

class ServiceMainCallback : System.MulticastDelegate
    {

     Void ServiceMainCallback( Object object,  I method);
     Void Invoke( I4 argCount,  I argPointer);
     Class System.IAsyncResult BeginInvoke( I4 argCount,  I argPointer,  Class System.AsyncCallback callback,  Object object);
     Void EndInvoke( Class System.IAsyncResult result);


    }

class ServiceControlCallback : System.MulticastDelegate
    {

     Void ServiceControlCallback( Object object,  I method);
     Void Invoke( I4 control);
     Class System.IAsyncResult BeginInvoke( I4 control,  Class System.AsyncCallback callback,  Object object);
     Void EndInvoke( Class System.IAsyncResult result);


    }

class ServiceControlCallbackEx : System.MulticastDelegate
    {

     Void ServiceControlCallbackEx( Object object,  I method);
     I4 Invoke( I4 control,  I4 eventType,  I eventData,  I eventContext);
     Class System.IAsyncResult BeginInvoke( I4 control,  I4 eventType,  I eventData,  I eventContext,  Class System.AsyncCallback callback,  Object object);
     I4 EndInvoke( Class System.IAsyncResult result);


    }

class System.ServiceProcess.PowerBroadcastStatus : System.Enum
    {
     I4 value__;
     ValueClass System.ServiceProcess.PowerBroadcastStatus BatteryLow;
     ValueClass System.ServiceProcess.PowerBroadcastStatus OemEvent;
     ValueClass System.ServiceProcess.PowerBroadcastStatus PowerStatusChange;
     ValueClass System.ServiceProcess.PowerBroadcastStatus QuerySuspend;
     ValueClass System.ServiceProcess.PowerBroadcastStatus QuerySuspendFailed;
     ValueClass System.ServiceProcess.PowerBroadcastStatus ResumeAutomatic;
     ValueClass System.ServiceProcess.PowerBroadcastStatus ResumeCritical;
     ValueClass System.ServiceProcess.PowerBroadcastStatus ResumeSuspend;
     ValueClass System.ServiceProcess.PowerBroadcastStatus Suspend;



    }

class System.ServiceProcess.SafeNativeMethods : System.Object
    {

     I4 MessageBox( I hWnd,  String text,  String caption,  I4 type);
     I OpenSCManager( String machineName,  String databaseName,  I4 access);
     Boolean CloseServiceHandle( I handle);
     I4 LsaClose( I objectHandle);
     I4 LsaFreeMemory( I ptr);
     I4 LsaNtStatusToWinError( I4 ntStatus);
     Boolean GetServiceKeyName( I SCMHandle,  String displayName,  Class System.Text.StringBuilder shortName,  ByRef I4 shortNameLength);
     Boolean GetServiceDisplayName( I SCMHandle,  String shortName,  Class System.Text.StringBuilder displayName,  ByRef I4 displayNameLength);
     Void System.ServiceProcess.SafeNativeMethods();


    }

class System.ServiceProcess.ServiceAccount : System.Enum
    {
     I4 value__;
     ValueClass System.ServiceProcess.ServiceAccount LocalService;
     ValueClass System.ServiceProcess.ServiceAccount NetworkService;
     ValueClass System.ServiceProcess.ServiceAccount LocalSystem;
     ValueClass System.ServiceProcess.ServiceAccount User;



    }

class System.ServiceProcess.ServiceBase : System.ComponentModel.Component
    {
     I4 MaxNameLength;
     ValueClass SERVICE_STATUS status;
     I statusHandle;
     Class ServiceControlCallback commandCallback;
     Class ServiceControlCallbackEx commandCallbackEx;
     Class ServiceMainCallback mainCallback;
     I handleName;
     Class System.Threading.ManualResetEvent startCompletedSignal;
     I4 acceptedCommands;
     Boolean autoLog;
     String serviceName;
     Class System.Diagnostics.EventLog eventLog;
     Boolean nameFrozen;
     Boolean commandPropsFrozen;
     Boolean disposed;

     Void System.ServiceProcess.ServiceBase();
     Boolean get_AutoLog();
     Void set_AutoLog( Boolean value);
     Boolean get_CanHandlePowerEvent();
     Void set_CanHandlePowerEvent( Boolean value);
     Boolean get_CanPauseAndContinue();
     Void set_CanPauseAndContinue( Boolean value);
     Boolean get_CanShutdown();
     Void set_CanShutdown( Boolean value);
     Boolean get_CanStop();
     Void set_CanStop( Boolean value);
     Class System.Diagnostics.EventLog get_EventLog();
     String get_ServiceName();
     Void set_ServiceName( String value);
     Void Dispose( Boolean disposing);
     Void OnContinue();
     Void OnPause();
     Boolean OnPowerEvent( ValueClass System.ServiceProcess.PowerBroadcastStatus powerStatus);
     Void OnShutdown();
     Void OnStart( SZArray String args);
     Void OnStop();
     Void OnCustomCommand( I4 command);
     Void Run( SZArray Class System.ServiceProcess.ServiceBase services);
     Void Run( Class System.ServiceProcess.ServiceBase service);
     Class ENTRY Initialize( Boolean multipleServices);
     Boolean LateBoundGetUserInteractive();
     Void LateBoundMessageBoxShow( String message,  String title);
     I4 ServiceCommandCallbackEx( I4 command,  I4 eventType,  I eventData,  I eventContext);
     Void ServiceCommandCallback( I4 command);
     Void ServiceQueuedMainCallback( Object state);
     Void ServiceMainCallback( I4 argCount,  I argPointer);

    property AutoLog { get(){} set(){} };
    property CanHandlePowerEvent { get(){} set(){} };
    property CanPauseAndContinue { get(){} set(){} };
    property CanShutdown { get(){} set(){} };
    property CanStop { get(){} set(){} };
    property EventLog { get(){} set(){} };
    property ServiceName { get(){} set(){} };

    }

class System.ServiceProcess.ServiceController : System.ComponentModel.Component
    {
     I4 DISPLAYNAMEBUFFERSIZE;
     String machineName;
     String name;
     String displayName;
     String eitherName;
     I4 commandsAccepted;
     ValueClass System.ServiceProcess.ServiceControllerStatus status;
     I serviceManagerHandle;
     Boolean statusGenerated;
     Boolean controlGranted;
     Boolean browseGranted;
     SZArray Class System.ServiceProcess.ServiceController dependentServices;
     SZArray Class System.ServiceProcess.ServiceController servicesDependedOn;
     I4 type;
     Boolean disposed;
     I4 UnknownEnvironment;
     I4 NtEnvironment;
     I4 NonNtEnvironment;
     I4 environment;

     Void System.ServiceProcess.ServiceController();
     Void System.ServiceProcess.ServiceController( String name);
     Void System.ServiceProcess.ServiceController( String name,  String machineName);
     Void System.ServiceProcess.ServiceController( String machineName,  Class ENUM_SERVICE_STATUS status);
     Void System.ServiceProcess.ServiceController( String machineName,  Class ENUM_SERVICE_STATUS_PROCESS status);
     Boolean get_CanPauseAndContinue();
     Boolean get_CanShutdown();
     Boolean get_CanStop();
     String get_DisplayName();
     Void set_DisplayName( String value);
     SZArray Class System.ServiceProcess.ServiceController get_DependentServices();
     String get_MachineName();
     Void set_MachineName( String value);
     String get_ServiceName();
     Void set_ServiceName( String value);
     SZArray Class System.ServiceProcess.ServiceController get_ServicesDependedOn();
     ValueClass System.ServiceProcess.ServiceControllerStatus get_Status();
     ValueClass System.ServiceProcess.ServiceType get_ServiceType();
     Void CheckEnvironment();
     Void Close();
     Class System.ComponentModel.Win32Exception CreateSafeWin32Exception();
     Void Dispose( Boolean disposing);
     Void GenerateStatus();
     Void GenerateNames();
     I GetDataBaseHandle();
     SZArray Class System.ServiceProcess.ServiceController GetDevices();
     SZArray Class System.ServiceProcess.ServiceController GetDevices( String machineName);
     I GetServiceHandle( I4 desiredAccess);
     SZArray Class System.ServiceProcess.ServiceController GetServices();
     SZArray Class System.ServiceProcess.ServiceController GetServices( String machineName);
     SZArray Class ENUM_SERVICE_STATUS_PROCESS GetServicesInGroup( String machineName,  String group);
     SZArray Class System.ServiceProcess.ServiceController GetServicesOfType( String machineName,  I4 serviceType);
     Void Pause();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -