Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Spooler Control

Status
Not open for further replies.

domenu

Programmer
May 31, 2002
30
BE
Hello,

I want to write an application in C# that controls the Windows Print Spooler service.

How do I know if the service is still responding?
I know how to check if the service is running or stopped, but I want to detect if the running printspooler is really
still active and accepting new print jobs.

Thanks in advance,

nick;
 
Use a ServiceController class to control and to retrieve some information about a service.
You can detect the following service states:
ContinuePending
-Paused
-PausePending
-Running
-StartPending
-Stopped
-StopPending

-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top