Jump to content

SplEnable

From EDM2
Revision as of 03:37, 12 December 2019 by Martini (talk | contribs) (Created page with "This function is called to enable the OS/2 spooler. ; Note: There is currently no support for using this API to remotely enable a print spooler. == Syntax == SplEnable(p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function is called to enable the OS/2 spooler.

Note
There is currently no support for using this API to remotely enable a print spooler.

Syntax

SplEnable(pszComputerName, pszDirectory,
      pReserved);

Parameters

pszComputerName (PSZ) - input Name of the computer on which to enable the spooler.

This value currently must be NULL to enable the local spooler.

pszDirectory (PSZ) - input Name of the directory containing the spool files.

This value must currently be set to NULL to use the spooler directory as defined in the SYSTEM INI file.

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_ALREADY_INITIALIZED(0x4FFD)
The spooler is already enabled.
  • PMERR_SPL_NO_MEMORY(0x4007)
Not enough memory to enable spooler.

Sample

#define INCL_SPL
#define INCL_SPLBIDI
#include <os2.h>

PSZ      pszComputerName;  /*  Name of the computer on which to enable the spooler. */
PSZ      pszDirectory;     /*  Name of the directory containing the spool files. */
PVOID    pReserved;        /*  Must be NULL. Reserved for future use. */
ULONG    rc;               /*  Return codes. */

rc = SplEnable(pszComputerName, pszDirectory,
       pReserved);