You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
728 B
34 lines
728 B
|
|
|
|
|
|
//
|
|
// Sample .idl definition
|
|
//
|
|
|
|
typedef [switch_type(unsigned long)] union _NW_PRINTER_INFO {
|
|
[case(1)]
|
|
LPPRINTER_INFO_1 PrinterInfo1;
|
|
[case(2)]
|
|
LPPRINTER_INFO_2 PrinterInfo2;
|
|
[default]
|
|
;
|
|
} NW_PRINTER_INFO, *PNW_PRINTER_INFO, *LPNW_PRINTER_INFO;
|
|
|
|
DWORD
|
|
NwrGetPrinter(
|
|
[in] NWWKSTA_PRINTER_CONTEXT PrinterHandle,
|
|
[in] DWORD Level,
|
|
[out,switch_is(Level)] LPPRINTER_INFO PrinterInfo,
|
|
[in] DWORD BufferSize,
|
|
[out] LPDWORD BytesNeeded
|
|
);
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
// Sample .acf definition (put this between the curly braces)
|
|
//
|
|
|
|
NwrGetPrinter([byte_count(BufferSize)] PrinterInfo);
|