1 | 'api_winspool.sbp
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifndef _INC_WINSPOOL
|
---|
5 | #define _INC_WINSPOOL
|
---|
6 |
|
---|
7 |
|
---|
8 | Type PRINTER_INFO_5
|
---|
9 | pPrinterName As LPSTR
|
---|
10 | pPortName As LPSTR
|
---|
11 | Attributes As DWord
|
---|
12 | DeviceNotSelectedTimeout As DWord
|
---|
13 | TransmissionRetryTimeout As DWord
|
---|
14 | End Type
|
---|
15 |
|
---|
16 |
|
---|
17 | Declare Function EnumPrinters Lib "winspool.drv" Alias "EnumPrintersA" (Flags As DWord, Name As LPSTR, Level As DWord, pPrinterEnum As *Byte, cbBuf As DWord, ByRef rer_cbNeeded As DWord, ByRef ref_cReturned As DWord) As BOOL
|
---|
18 |
|
---|
19 | Const PRINTER_ENUM_DEFAULT = &H00000001
|
---|
20 | Const PRINTER_ENUM_LOCAL = &H00000002
|
---|
21 | Const PRINTER_ENUM_CONNECTIONS = &H00000004
|
---|
22 | Const PRINTER_ENUM_FAVORITE = &H00000004
|
---|
23 | Const PRINTER_ENUM_NAME = &H00000008
|
---|
24 | Const PRINTER_ENUM_REMOTE = &H00000010
|
---|
25 | Const PRINTER_ENUM_SHARED = &H00000020
|
---|
26 | Const PRINTER_ENUM_NETWORK = &H00000040
|
---|
27 |
|
---|
28 | Const PRINTER_ENUM_EXPAND = &H00004000
|
---|
29 | Const PRINTER_ENUM_CONTAINER = &H00008000
|
---|
30 |
|
---|
31 | Const PRINTER_ENUM_ICONMASK = &H00ff0000
|
---|
32 | Const PRINTER_ENUM_ICON1 = &H00010000
|
---|
33 | Const PRINTER_ENUM_ICON2 = &H00020000
|
---|
34 | Const PRINTER_ENUM_ICON3 = &H00040000
|
---|
35 | Const PRINTER_ENUM_ICON4 = &H00080000
|
---|
36 | Const PRINTER_ENUM_ICON5 = &H00100000
|
---|
37 | Const PRINTER_ENUM_ICON6 = &H00200000
|
---|
38 | Const PRINTER_ENUM_ICON7 = &H00400000
|
---|
39 | Const PRINTER_ENUM_ICON8 = &H00800000
|
---|
40 | Const PRINTER_ENUM_HIDE = &H01000000
|
---|
41 |
|
---|
42 | Const SPOOL_FILE_PERSISTENT = &H00000001
|
---|
43 | Const SPOOL_FILE_TEMPORARY = &H00000002
|
---|
44 |
|
---|
45 |
|
---|
46 | #endif '_INC_WINSPOOL
|
---|