For OS/2, the header information for the spooler APIs is defined in the PMSPL.H header file, in the OS/2 Toolkit.
Depending on the files that are included and the definitions that are used, there can be either 16-bit or 32-bit support for print applications. If you want to take a program written for a 16-bit OS/2 application and recompile it for 32-bit OS/2, you must use PMSPL.H from the Toolkit.
The following are spooler API equivalents to the DOS print APIs: ┌─────────────────────────┬────────────────────────────────────────────────────┐
│ FOR 16-BIT SUPPORT │ FOR 32-BIT SUPPORT │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDestControl │ SplControlDevice │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDestGetInfo │ SplQueryDevice │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDestEnum │ SplEnumDevice │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintJobContinue │ SplReleaseJob │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintJobPause │ SplHoldJob │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintJobDel │ SplDeleteJob │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintJobGetInfo │ SplQueryJob │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintJobSetInfo │ SplSetJob │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintJobEnum │ SplEnumJob │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQAdd │ SplCreateQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQPause │ SplHoldQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQContinue │ SplReleaseQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQDel │ SplDeleteQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQGetInfo │ SplQueryQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQSetInfo │ SplSetQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQEnum │ SplEnumQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDestAdd │ SplCreateDevice │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDestSetInfo │ SplSetDevice │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDestDel │ SplDeleteDevice │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQPurge │ SplPurgeQueue │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintDriverEnum │ SplEnumDriver │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintQProcessorEnum │ SplEnumQueueProcessor │
├─────────────────────────┼────────────────────────────────────────────────────┤
│ DosPrintPortEnum │ SplEnumPort │
└─────────────────────────┴────────────────────────────────────────────────────┘