/* * Current state of the Printer Queue we are watching */ typedef struct _Printer { LPTSTR pszPrinterName; // The shell "friendly" name LPTSTR pszServerName; // The server of the printer LPTSTR pszShareName; // The share for the printer DWORD dwStatus; // Current status of the printer DWORD cJobs; // # of jobs currently in the printer HANDLE hPrinter; // An open handle to the printer } PRINTERDATA;