1 | 'api_winspool.sbp
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifndef _INC_WINSPOOL
|
---|
5 | #define _INC_WINSPOOL
|
---|
6 |
|
---|
7 | #ifdef UNICODE
|
---|
8 | Const _FuncName_EnumPrinters = "EnumPrintersW"
|
---|
9 | #else
|
---|
10 | Const _FuncName_EnumPrinters = "EnumPrintersA"
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | Type PRINTER_INFO_5W
|
---|
14 | pPrinterName As LPWSTR
|
---|
15 | pPortName As LPWSTR
|
---|
16 | Attributes As DWord
|
---|
17 | DeviceNotSelectedTimeout As DWord
|
---|
18 | TransmissionRetryTimeout As DWord
|
---|
19 | End Type
|
---|
20 |
|
---|
21 | Type PRINTER_INFO_5A
|
---|
22 | pPrinterName As LPSTR
|
---|
23 | pPortName As LPSTR
|
---|
24 | Attributes As DWord
|
---|
25 | DeviceNotSelectedTimeout As DWord
|
---|
26 | TransmissionRetryTimeout As DWord
|
---|
27 | End Type
|
---|
28 |
|
---|
29 | #ifdef UNICODE
|
---|
30 | TypeDef PRINTER_INFO_5 = PRINTER_INFO_5W
|
---|
31 | #else
|
---|
32 | TypeDef PRINTER_INFO_5 = PRINTER_INFO_5A
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | 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
|
---|
36 |
|
---|
37 | Const PRINTER_ENUM_DEFAULT = &H00000001
|
---|
38 | Const PRINTER_ENUM_LOCAL = &H00000002
|
---|
39 | Const PRINTER_ENUM_CONNECTIONS = &H00000004
|
---|
40 | Const PRINTER_ENUM_FAVORITE = &H00000004
|
---|
41 | Const PRINTER_ENUM_NAME = &H00000008
|
---|
42 | Const PRINTER_ENUM_REMOTE = &H00000010
|
---|
43 | Const PRINTER_ENUM_SHARED = &H00000020
|
---|
44 | Const PRINTER_ENUM_NETWORK = &H00000040
|
---|
45 |
|
---|
46 | Const PRINTER_ENUM_EXPAND = &H00004000
|
---|
47 | Const PRINTER_ENUM_CONTAINER = &H00008000
|
---|
48 |
|
---|
49 | Const PRINTER_ENUM_ICONMASK = &H00ff0000
|
---|
50 | Const PRINTER_ENUM_ICON1 = &H00010000
|
---|
51 | Const PRINTER_ENUM_ICON2 = &H00020000
|
---|
52 | Const PRINTER_ENUM_ICON3 = &H00040000
|
---|
53 | Const PRINTER_ENUM_ICON4 = &H00080000
|
---|
54 | Const PRINTER_ENUM_ICON5 = &H00100000
|
---|
55 | Const PRINTER_ENUM_ICON6 = &H00200000
|
---|
56 | Const PRINTER_ENUM_ICON7 = &H00400000
|
---|
57 | Const PRINTER_ENUM_ICON8 = &H00800000
|
---|
58 | Const PRINTER_ENUM_HIDE = &H01000000
|
---|
59 |
|
---|
60 | Const SPOOL_FILE_PERSISTENT = &H00000001
|
---|
61 | Const SPOOL_FILE_TEMPORARY = &H00000002
|
---|
62 |
|
---|
63 |
|
---|
64 | #endif '_INC_WINSPOOL
|
---|