SplDisable: Difference between revisions
Appearance
mNo edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
== Parameters == | == Parameters == | ||
;pszComputerName (PSZ) - input: Name of the computer on which to disable the spooler. | ;''pszComputerName'' ([[PSZ]]) - input: Name of the computer on which to disable the spooler. | ||
:This value currently must be NULL to disable the local spooler. | :This value currently must be NULL to disable the local spooler. | ||
;pReserved (PVOID) - input: Must be NULL. Reserved for future use. | ;''pReserved'' ([[PVOID]]) - input: Must be NULL. Reserved for future use. | ||
;rc (ULONG) - returns: Return codes. | ==Returns== | ||
;''rc'' ([[ULONG]]) - returns: Return codes. | |||
::0 Success | ::0 Success | ||
::87 ERROR_INVALID_PARAMETER - An invalid buffer given. | ::87 ERROR_INVALID_PARAMETER - An invalid buffer given. |
Latest revision as of 04:35, 3 September 2025
This function is called to disable the OS/2 spooler. The spooler remains disabled across reboots. It can be re-enabled using SplEnable.
- Note
- There is currently no support for using this API to remotely disable a print spooler.
Syntax
SplDisable(pszComputerName, pReserved)
Parameters
- pszComputerName (PSZ) - input
- Name of the computer on which to disable the spooler.
- This value currently must be NULL to disable the local spooler.
- pReserved (PVOID) - input
- Must be NULL. Reserved for future use.
Returns
- rc (ULONG) - returns
- Return codes.
- 0 Success
- 87 ERROR_INVALID_PARAMETER - An invalid buffer given.
- 0x4009 PMERR_SPL_SPOOLER_NOT_INSTALLED - The spooler is not enabled.