System.ServiceProcess
Constructs a new sys description.
description text.
Retrieves the description text.
description
Indicates the system's power status.
Battery power is low.
An Advanced Power Management (APM) BIOS signaled an APM OEM event.
A change in the power status of the computer is
detected, such as a switch from battery power to A/C. The system also broadcasts
this event when remaining battery power slips below the threshold specified by
the user or if the battery power changes by a specified percentage.
The system has requested permission to suspend the
computer. An application that grants permission should carry out preparations
for the suspension before returning.
The system was denied permission to suspend
the computer. This status is broadcast if any application or driver denied a
previous status.
The computer has woken up automatically to
handle an event.
If the system detects any user
activity after broadcasting , it will broadcast a
event to let applications know they can resume full
interaction with the user.
The system has resumed operation after
a critical suspension caused by a failing battery.
Because a critical suspension occurs
without prior notification, resources and data previously available may not be
present when the application receives this event. The application should attempt
to restore its state to the best of its ability.
The system has resumed operation after being suspended.
The computer is about to enter a suspended state. This
event is typically broadcast when all applications and installable drivers have
returned
to a previous state.
Specifies a service's security context, which defines
its logon type.
An account that provides extensive local privileges, and presents
the computer's credentials to any remote server.
An account that acts as a non-privileged user on the
local computer, and
presents the computer's credentials to any remote server.
An account that acts as a non-privileged user on the
local computer, and
presents anonymous credentials to any remote server.
An account defined by a specific user on the network.
Specifying for the member causes the
system to prompt for a valid user name and password when the service is
installed, unless you set values for both the and properties of your
instance.
Provides a base class for a service that will exist as part of a service application.
must
be derived when creating a new service class.
Indicates the maximum size for a service name.
Creates a new instance of the class.
When implemented in a derived class,
runs when a Continue command is sent to the service
by the
Service Control Manager (SCM). Specifies actions to take when a
service resumes normal functioning after being paused.
When implemented in a
derived class, executes when a Pause command is sent
to
the service by the Service Control Manager (SCM). Specifies
actions to take when a service pauses.
When implemented in a derived class, executes when the
computer's power status has changed. This applies to laptop computers when they go into suspended mode, which is not the same
as a system shutdown.
A that indicates a notification from the system about its power status.
When implemented in a derived class, the needs of
your application determine what value to return. For example, if a
broadcast status is passed, you could cause your
application to reject the query by returning
.
When implemented in a derived class,
executes when the system is shutting down.
Specifies what should
happen immediately prior
to the system shutting down.
When implemented in a derived class, executes when a
Start command is sent to the service
by the Service Control Manager (SCM) or when the
operating system starts (for a service
that starts automatically). Specifies actions to take when the service starts.
Data passed by the start command.
When implemented in a
derived class, executes when a Stop command is sent to the
service by the Service Control Manager (SCM). Specifies actions to take when a
service stops
running.
When implemented in a derived class, executes when the Service
Control Manager (SCM) passes a custom
command to the service. Specifies actions to take when
a command with the specified parameter value occurs.
The command message sent to the service.
Provides the main entry point for an executable that
contains multiple associated services. Loads the specified services into memory so they can be
started.
An array of ServiceBase instances, which indicate services to start.
Provides the main
entry point for an executable that contains a single
service. Loads the service into memory so it can be
started.
A which indicates a service to start.
Indicates whether to report Start, Stop, Pause,
and Continue commands
in
the
event
log.
Gets or sets
a value indicating whether the service can handle notifications of
computer power status changes.
Gets or sets a value indicating whether the service can be paused
and resumed.
Gets or sets a value indicating whether the service should be notified when
the system is shutting down.
Gets or sets a value indicating whether the service can be
stopped once it has started.
Gets an event log you can use to write notification of service
command calls, such as Start and Stop, to the Application event log.
Gets or sets the short name used to identify the service to the system.
Represents a Windows service and allows you to connect to a running or stopped
service, manipulate it, or get information about it.
Initializes a new instance of the class that is not associated with a specific service.
Initializes a new instance of the class that is associated with an existing service on the
local computer.
The short name that identifies the service to the system.
Initializes a new instance of the class that is associated with an existing service
on the specified computer.
The short name that identifies the service to the system.
The computer on which the service resides.
Disconnects this instance from
the service and frees all the resources that the instance allocated.
Retrieves the device driver services on the local computer.
An array of type in which each element is associated
with a device driver service on the local computer.
Retrieves the device driver services on the specified computer.
The computer from which to retrieve the device driver services.
An array of type in which each element is associated
with a device driver service on the specified computer.
Retrieves all the services on the local computer, except for the device driver services.
An array of type in which each element
is associated with a service on the local computer.
Retrieves all the services on the specified computer, except for the device driver services.
The computer from which to retrieve the services.
An array of type in which each element
is associated with a service on the specified computer.
Suspends a service's operation.
Continues a service after it has been paused.
Executes a custom command on the service.
An application-defined command flag that indicates which custom command to execute.
Refreshes all the property values, setting them to the current values.
Starts the service, passing no arguments.
Starts a service, passing the specified arguments.
An array of arguments to pass to the service when it starts.
Stops this service and any services that are dependent on
this service.
Infinitely waits for the service to reach the specified status.
The status to wait for.
Waits for the service to reach the specified status or for the specified time-out
to expire.
The status to wait for.
The amount of time to wait for the service to reach the specified status.
Gets a value indicating whether the service can be paused and resumed.
Gets a value indicating whether the service should be notified when the system is shutting down.
Gets a value indicating whether the service can be stopped after it has started.
Gets or sets a friendly name for the service.
Gets the set of services that depends on the service
associated with this
instance.
Gets or sets the name of the computer on which this service resides.
Gets or sets the name that identifies the service that this instance
references.
The set of services that this service depends on.
Gets the status of the service that
is referenced by this instance.
Gets the type of service that this object references.
Allows control of code access security permissions for service
controllers.
Initializes a new instance of the class.
Initializes a new instance of the class with
the specified access to resources.
One of the values.
Initializes a new instance of the
class with the specified permission access levels, the name of the computer on
which the service resides, and the short name that identifies the
service to the system.
One of the values.
The name of the computer on which the service resides.
The short name that identifies the service to the system.
Initializes a new instance of the class with
the specified permission entries.
An array of objects. The property is set to this value.
Gets the collection of permission entries for this permissions request.
Defines access levels used by permission classes.
The has no permissions.
The can connect
to, but not control, existing services.
The can
connect to and control existing services.
Allows declarative service controller permission checks.
Initializes a new instance of the class.
One of the values.
Creates the permission based on the requested access
levels that are set through the property on the attribute.
An that represents the created permission.
Gets or sets the name of the computer on which the service resides.
Gets or sets the access levels used in the permissions request.
Gets or sets the short name that identifies the service to the system.
Defines the smallest unit of a code access security permission that is set for a
.
Initializes a new instance of the class.
Initializes a new instance of the class with
the specified
permission access levels, the name of the computer, and a short name
that identifies the service.
One of the values.
The name of the computer on which the service resides.
The short name that identifies the service to the system.
Gets the name of the computer on which the service resides.
Gets the access levels used in the permissions request.
Gets the short name that identifies the service to the system.
Contains a strongly-typed collection of objects.
Adds a specified to this collection.
The object to add.
The zero-based index of the added object.
Appends a set of specified permission entries to this collection.
An array of type objects that contains the permission entries to add.
Appends a set of specified permission entries to this collection.
A that contains the permission entries to add.
Determines whether this collection contains a specified
object.
The object to find.
if the
specified object belongs to this collection;
otherwise, .
Copies the permission entries from this collection to an
array, starting at a particular index of the array.
An array of type that receives the copied permission entries.
The zero-based index at which to begin copying the permission entries.
Determines the index of a specified permission entry in this collection.
The permission entry to search for.
The zero-based index of the specified permission
entry, or -1 if the permission entry was not found in the collection.
Inserts a permission entry into this collection at a specified index.
The zero-based index of the collection at which to insert the permission entry.
The permission entry to insert into this collection.
Removes a specified permission entry from this collection.
The permission entry to remove.
Gets or sets the object at a specified index.
The zero-based index into the collection.
Indicates the current state of the service.
The service continue is pending.
The service is paused.
The service pause is pending.
The service is running.
The service is starting.
The service is stopping.
The service is not running.
Installs a class that extends to implement a service. This class is called
by the install utility when installing a service application.
Initializes a new instance of the class.
Copies properties from an instance of
to this installer.
The from which to copy.
Installs the service by writing service application
information to the registry. This method is meant to be used by installation
tools, which process the appropriate methods automatically.
An that contains the context information associated with the installation.
Indicates whether two installers would install
the same service.
A to which you are comparing the current installer.
if calling on both of these installers would result
in installing the same service; otherwise, .
Rolls back service application information written to the registry
by the installation procedure. This method is meant to be used by installation
tools, which process the appropriate methods automatically.
An that contains the context information associated with the installation.
Uninstalls the service by removing information about it from the registry.
An that contains the context information associated with the installation.
Indicates the friendly name that identifies the service to
the user.
Indicates the services that must be running for this service to run.
Indicates the name used by the system to identify
this service. This property must be identical to the of the service you want to install.
Indicates how and when this service is started.
Specifies a description for a property
or event.
Initializes a new instance of the class, using the specified description.
The application-defined description text.
Gets description text associated with the service process.
Installs an executable containing classes
that extend . This class is called by installation utilities, such as InstallUtil.exe, when installing a service application.
Implements the base class method with no class-specific behavior.
The that represents the service process.
Writes service application information to the registry.
This method is meant to be used by installation tools, which call the appropriate methods automatically.
An that contains the context information associated with the installation.
Rolls back service application information
written to the registry by the installation procedure. This method is meant to be used by installation tools, which process
the appropriate methods automatically.
An that contains the context information associated with the installation.
Gets help text displayed for service installation options.
Gets or sets the password associated with the user account under
which the service application runs.
Gets or sets the type of account under which to run
this service application.
Gets or sets the user account under which
the service application will run.
Indicates the start mode of the service.
Indicates that the service is started only manually, by a user (using the Service
Control Manager) or by an application.
Indicates that the service is to be started (or was started) by the operating
system, at system start-up. If an automatically started service depends on a
manually started service, the manually started service is also started
automatically at system startup.
Indicates that the service
is disabled, so that it cannot be started by a user or application.
Represents the type of the service.
A service for a hardware device that requires its own driver.
A file system driver, which is also a Kernel device driver.
A service
that can communicate with the desktop.
A Kernel device driver such as a hard disk or other
low-level hardware device driver.
A file system driver used during startup to determine the file systems
present on the system.
A Win32 program that can be started by the Service
Controller and that obeys the service control protocol. This type of Win32
service runs in a process by itself.
A Win32 service that can share a process with other Win32 services.
The exception that is thrown when a specified timeout has expired.
Initializes a new instance of the class with no message text.
Initializes a new instance of the class with the specified message text.
Text that describes the type or source of the exception.
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]
[To be supplied.]