blob: 8b9404c32d5f5e90715b75591c3d17123e4dec77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//
// 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);
|