Jump to content

SplDisable: Difference between revisions

From EDM2
Created page with "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..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
This function is called to disable the OS/2 spooler. The spooler remains disabled across reboots. It can be re-enabled using SplEnable.  
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.


; Note: There is currently no support for using this API to remotely disable a print spooler.
== Syntax ==  
== Syntax ==  
  SplDisable(pszComputerName, pReserved);
  SplDisable(pszComputerName, pReserved)


== Parameters ==
== Parameters ==
; pszComputerName (PSZ) - input  
;pszComputerName (PSZ) - input: Name of the computer on which to disable the spooler.
: 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.
: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
 
:;ERROR_INVALID_PARAMETER(87)
::An invalid buffer given.
 
:;PMERR_SPL_SPOOLER_NOT_INSTALLED(0x4009)
::The spooler is not enabled.
 
 
== Sample ==
<pre>
#define INCL_SPL
#define INCL_SPLBIDI
#include <os2.h>
 
PSZ      pszComputerName;  /*  Name of the computer on which to disable the spooler. */
PVOID    pReserved;        /*  Must be NULL. Reserved for future use. */
ULONG    rc;              /*  Return codes. */


rc = SplDisable(pszComputerName, pReserved);
;rc (ULONG) - returns: Return codes.
</pre>
::0 Success
::87 ERROR_INVALID_PARAMETER - An invalid buffer given.
::0x4009 PMERR_SPL_SPOOLER_NOT_INSTALLED - The spooler is not enabled.


[[Category:Spl]]
[[Category:Spl]]

Latest revision as of 14:26, 13 December 2019

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.
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.