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