StopService method of the Win32_PrinterDriver class
The StopService WMI class method places the service represented by the Win32_PrinterDriver object in the stopped state.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 StopService();
Parameters
This method has no parameters.
Return value
Returns one of the values listed in the following list or any other value to indicate an error. For values different from those listed in the following list, see WMI Error Constants.
-
0
-
Service successfully stopped.
-
1
-
Request not supported.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMV2 |
Header |
|
MOF |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for