Description:
This function allows applications to unregister for notification of events about printers. This function should be used when an application no longer wants certain alerts, in order to limit the network traffic.
#define INCL_SPL
#define INCL_SPLBIDI
#include <os2.h>
PSZ pszComputerName; /* Printer server name to unregister for alert notification. */
PSZ pszName; /* Case-sensitive name of printer port to unregister for alerts. */
ULONG ulHandle; /* Spooler alert handle previously allocated by SplRegister. */
ULONG ulCategory; /* Category of alert to unregister. */
ULONG ulType; /* Type of alert to unregister for the given category. */
ULONG rc; /* Return codes. */
rc = SplUnRegister(pszComputerName, pszName,
ulHandle, ulCategory, ulType);