|
|
Microsoft Windows NT Build 297 06-28-1992
/******************************************************************************\
*
* ENUMPRT.H
*
\******************************************************************************/
/******************************************************************************\
* SYMBOLIC CONSTANTS
\******************************************************************************/
#define MAX_NUM_PRT_ATTRIBUTES 4
#define MAX_NUM_PRT_PRIORITIES 4
#define MAX_NUM_PRT_STATUS 3
/******************************************************************************\
* GLOBAL VARIABLES
\******************************************************************************/
static LPSTR enumstr[] = { "PRINTER_INFO_1",
" pDescription: \t%s",
" pName: \t%s",
" pComment: \t%s",
"PRINTER_INFO_2",
" pServerName: \t%s", // 5
" pPrinterName: \t%s",
" pShareName: \t%s",
" pPortName: \t%s",
" pDriverName: \t%s",
" pComment: \t%s", // 10
" pLocation: \t%s",
" pDevMode \t",
" dmDeviceName: \t%s",
" dmSpecVersion: \t",
" dmDriverVersion: \t", // 15
" dmSize: \t",
" dmDriverExtra: \t",
" dmFields: \t",
" dmOrientation: \t",
" dmPaperSize: \t", // 20
" dmPaperLength: \t",
" dmPaperWidth: \t",
" dmScale: \t",
" dmCopies: \t",
" dmDefaultSource: \t", // 25
" dmPrintQuality: \t",
" dmColor: \t",
" pSepFile: \t%s",
" pPrintProcessor: \t%s",
" pDatatype: \t%s", // 30
" pParameters: \t%s",
" Attributes: \t",
" Priority: \t%s",
" Priority: \t%ld",
" DefaultPriority: \t%ld", // 35
" StartTime: \t%ld",
" UntilTime: \t%ld",
" Status: \t",
" cJobs: \t%ld",
" AveragePPM: \t%ld" }; // 40
LOOKUPENTRY attributes[] =
{ { PRINTER_ATTRIBUTE_QUEUED, 0, "PRINTER_ATTRIBUTE_QUEUED " },
{ PRINTER_ATTRIBUTE_DIRECT, 0, "PRINTER_ATTRIBUTE_DIRECT " },
{ PRINTER_ATTRIBUTE_DEFAULT, 0, "PRINTER_ATTRIBUTE_DEFAULT " },
{ PRINTER_ATTRIBUTE_SHARED, 0, "PRINTER_ATTRIBUTE_SHARED " } };
LOOKUPENTRY priorities[] =
{ { NO_PRIORITY, 0, "NO_PRIORITY " },
{ MAX_PRIORITY, 0, "MAX_PRIORITY " },
{ MIN_PRIORITY, 0, "MIN_PRIORITY " },
{ DEF_PRIORITY, 0, "DEF_PRIORITY " } };
LOOKUPENTRY status[] =
{ { PRINTER_STATUS_PAUSED, 0, "PRINTER_STATUS_PAUSED " },
{ PRINTER_STATUS_ERROR, 0, "PRINTER_STATUS_ERROR " },
{ PRINTER_STATUS_PENDING_DELETION, 0, "PRINTER_STATUS_PENDING_DELETION "}};
/******************************************************************************\
* MACROS
\******************************************************************************/
#define outstr(fmt,arg) wsprintf(buf,fmt,arg?arg:"(null)"); \
SendDlgItemMessage (hDlg, DID_LISTBOX, \
LB_INSERTSTRING, (UINT)-1, \
(LONG) buf);
#define outstr2(buf) SendDlgItemMessage (hDlg, DID_LISTBOX, \
LB_INSERTSTRING, (UINT)-1, \
(LONG) buf);
#define outnum(fmt,arg) wsprintf(buf,fmt,arg); \
SendDlgItemMessage (hDlg, DID_LISTBOX, \
LB_INSERTSTRING, (UINT)-1, \
(LONG) buf);
/******************************************************************************\
* FUNCTION PROTOTYPES
\******************************************************************************/
void SetEnumPrtDlgFields (HWND, DWORD, LPPRINTER_INFO_1, LPPRINTER_INFO_2);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.