Description:
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.
#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);