Editar

Partilhar via


MsSnaStatus_ServicePrint Class

The MsSnaStatus_ServicePrint class represents an SNA Print service status.

Syntax

  
class MsSnaStatus_ServicePrint : MsSnaStatus_Config  
{  
   string Name;  
   sint32 Status;  
   string StatusText;  
};  

Properties

Name
Data Type: String Qualifiers: Key Access Type: Read-Only

The name of the Print Service. Name will be the same as the computer name.

Status
Data Type: sint32 Access Type: Read-Only

The current status of the service. The following table describes the possible values for Status.

Value Description
0 Inactive
1 Pending
2 Stopping
3 Active

StatusText
Data Type: String Access Type: Read-Only

One of the Status values.

Mode
Data Type: String Access Type: Read-Only

The mode name for this session.

Methods

Method Description
GetObject Retrieves the instance.
EnumerateInstances Enumerates all instances of the object.
ExecMethod Executes the specified method.
Start Starts the print service.
Stop Stops the print service

For more information on GetObject, EnumerateInstances, and ExecMethod, see IWbemServices interface.

Requirements

Platforms: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows 11, and Windows 10

See Also

WmiSnaStatus WMI Provider Classes
Administration and Management Programmer's Guide