source: branch/egtra-gdiplus/api_winspool.sbp@ 604

Last change on this file since 604 was 141, checked in by イグトランス (egtra), 18 years ago

#50 API宣言の変更完了

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