09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

198 Part II Usage Guide<br />

example, although most don’t, some services grant the interactive user permission to start<br />

and stop the service. As another example, psservice depend server is the command to list<br />

services that depend on the Server service. The list of services reported will differ for administrators<br />

and nonadministrators on <strong>Windows</strong> 7 because nonadmins aren’t allowed to read<br />

status information for the HomeGroup Listener service, which depends on Server.<br />

Query<br />

The query command displays status information about services or drivers on the target<br />

system, using flexible criteria to determine which ones to include. For each matching service<br />

or driver, PsService displays the following:<br />

■ Service name The internal name of the service or driver. This is the name that most<br />

sc.exe commands require.<br />

■ Display name The display name, as shown in the Services MMC snap-in.<br />

■ Description The descriptive text associated with the service or driver.<br />

■ Group If specified, the load order group that the service belongs to.<br />

■ Type User-mode services are either own-process or share-process, depending on<br />

whether the service’s process can host other services. User-mode processes can also<br />

be marked “interactive” (although that’s strongly discouraged). Drivers can be kernel<br />

drivers or file system drivers. (File system drivers must register with the I/O manager,<br />

and they interact more extensively with the memory manager.)<br />

■ State Indicates whether the service is running, stopped, or paused, or in transition<br />

with a pending start, stop, pause, or continue. Below this line, PsService shows whether<br />

the service accepts stop or pause/continue commands, and whether it can process<br />

pre-shutdown and shutdown notifications.<br />

■ Win32 exit code Zero indicates normal runtime operation or termination. A non-zero<br />

value indicates a standard error code reported by the service. The value 1066 indicates<br />

a service-specific error. The value 1077 indicates that the service has not been started<br />

since the last boot, which is normal for many services.<br />

■ Service-specific exit code If the Win32 exit code is 1066 (0x42A), this value indicates<br />

a service-specific error code; otherwise, it has no meaning.<br />

■ Checkpoint Normally zero, this value is incremented periodically to report service<br />

progress during lengthy start, stop, pause, or continue operations. It has no meaning<br />

when an operation is not pending.<br />

■ Wait hint The amount of time, in milliseconds, that the service estimates is required<br />

for a pending start, stop, pause, or continue operation. If that amount of time passes<br />

without a change to the State or Checkpoint, it can be assumed that an error has<br />

occurred within the service.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!