// winsplp.h
typedef struct _MONITORUI {
DWORD dwMonitorUISize;
BOOL()(PCWSTR pszServer,HWND hWnd,PCWSTR pszMonitorNameIn,PWSTR *ppszPortNameOut) * pfnAddPortUI;
BOOL( )(PCWSTR pName,HWND hWnd,PCWSTR pPortName) *pfnConfigurePortUI;
BOOL( )(PCWSTR pszServer,HWND hWnd,PCWSTR pszPortName) *pfnDeletePortUI;
} MONITORUI, *PMONITORUI;
View the official Windows Driver Kit DDI referenceNo description available.
The MONITORUI structure contains pointers to the functions within a port monitor UI DLL that the print spooler calls.
dwMonitorUISizeSize, in bytes, of the MONITORUI structure.
pfnAddPortUIPointer to the port monitor UI DLL AddPortUI function that adds a printer port, then obtains port configuration information from the user and sends it to the port monitor server DLL.
pfnConfigurePortUIPointer to the port monitor UI DLL ConfigurePortUI function that obtains port configuration information from the user and sends it to the port monitor server DLL.
pfnDeletePortUIPointer to the port monitor UI DLL DeletePortUI function that deletes a printer port.
All structure members must be initialized by the port monitor UI DLL. The structure's address is passed to the print spooler as the return value for the InitializePrintMonitorUI function.