MONITOREX

typedef struct _MONITOREX{
DWORD  dwMonitorSize;
MONITOR  Monitor;
} MONITOREX, FAR *LPMONITOREX;

A print monitor returns an initialized MONITOREX structure to the spooler when the spooler calls InitializePrintMonitor.

Members

dwMonitorSize

Size of a MONITOR structure, in bytes.

Monitor

MONITOR structure containing function pointers to the routines that a monitor implements.

Comments

A print monitor should initialize the function pointers in the Monitor field to point to the functions that it supports. Monitors are also responsible for setting dwMonitorSize to be the size of the MONITOR structure, in bytes.

A language monitor’s OpenPortEx routine should check that the specified port monitor’s function table implements the functionality required by the language monitor.