source: trunk/ab5.0/ablib/src/api_winspool.sbp @ 560

Last change on this file since 560 was 497, checked in by イグトランス (egtra), 15 years ago

インクルードガードとその他不要な前処理定義などの削除

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