1 | ' windef.ab
|
---|
2 |
|
---|
3 | '#ifndef WINVER
|
---|
4 | '#define WINVER &h0500
|
---|
5 | '#endif
|
---|
6 |
|
---|
7 | 'TypeDef ULONG = DWord
|
---|
8 | 'TypeDef PULONG = *ULONG
|
---|
9 | 'TypeDef USHORT = Word
|
---|
10 | 'TypeDef PUSHORT = *USHORT
|
---|
11 | TypeDef UCHAR = Byte
|
---|
12 | TypeDef PUCHAR = *UCHAR
|
---|
13 | 'TypeDef PSZ = *SByte
|
---|
14 |
|
---|
15 | Const MAX_PATH = 260
|
---|
16 |
|
---|
17 | Const NULL = 0 As VoidPtr
|
---|
18 |
|
---|
19 | Const FALSE = 0
|
---|
20 | Const TRUE = 1
|
---|
21 |
|
---|
22 | TypeDef DWORD = DWord
|
---|
23 | TypeDef BOOL = Long
|
---|
24 | TypeDef BYTE = Byte
|
---|
25 | TypeDef WORD = Word
|
---|
26 | 'TypeDef FLOAT = Single
|
---|
27 | 'TypeDef PFLOAT = *FLOAT
|
---|
28 | 'TypeDef PBOOL = *BOOL
|
---|
29 | 'TypeDef LPBOOL = *BOOL
|
---|
30 | 'TypeDef PBYTE = *Byte
|
---|
31 | 'TypeDef LPBYTE = *Byte
|
---|
32 | 'TypeDef PINT = *Long
|
---|
33 | 'TypeDef LPINT = *Long
|
---|
34 | 'TypeDef PWORD = *Word
|
---|
35 | 'TypeDef LPWORD = *Word
|
---|
36 | 'TypeDef LPLONG = *Long
|
---|
37 | 'TypeDef PDWORD = *DWord
|
---|
38 | 'TypeDef LPDWORD = *DWord
|
---|
39 | TypeDef LPVOID = VoidPtr
|
---|
40 | TypeDef LPCVOID = VoidPtr
|
---|
41 |
|
---|
42 | 'TypeDef INT = Long
|
---|
43 | 'TypeDef UINT = DWord
|
---|
44 | 'TypeDef PUINT = *DWord
|
---|
45 |
|
---|
46 | #require <winnt.ab>
|
---|
47 |
|
---|
48 | '#require <specstrings.ab>
|
---|
49 |
|
---|
50 | TypeDef WPARAM = ULONG_PTR
|
---|
51 | TypeDef LPARAM = LONG_PTR
|
---|
52 | TypeDef LRESULT = LONG_PTR
|
---|
53 | /*
|
---|
54 | #ifndef NOMINMAX
|
---|
55 |
|
---|
56 | #ifndef max
|
---|
57 | #endif
|
---|
58 |
|
---|
59 | #ifndef min
|
---|
60 | #endif
|
---|
61 |
|
---|
62 | #endif
|
---|
63 | */
|
---|
64 |
|
---|
65 | Const MAKEWORD(l, h) = (((l As Word) And &HFF) Or (((h As Word) And &HFF) << 8)) As Word
|
---|
66 | Const MAKELONG(l, h) = (((l As DWord) And &HFFFF) Or (((h As DWord) And &HFFFF) << 16)) As Long
|
---|
67 | Const HIBYTE(w) = (((w As Word) >> 8) And &HFF) As Byte
|
---|
68 | Const LOBYTE(w) = ((w As Word) And &HFF) As Byte
|
---|
69 | Const HIWORD(dw) = (((dw As DWord) >> 16) And &HFFFF) As Word
|
---|
70 | Const LOWORD(dw) = ((dw As DWord) And &HFFFF) As Word
|
---|
71 |
|
---|
72 | Type _System_DeclareHandle_HWND:unused As DWord:End Type
|
---|
73 | TypeDef HWND = *_System_DeclareHandle_HWND
|
---|
74 | Type _System_DeclareHandle_HHOOK:unused As DWord:End Type
|
---|
75 | TypeDef HHOOK = *_System_DeclareHandle_HHOOK
|
---|
76 | Type _System_DeclareHandle_HEVENT:unused As DWord:End Type
|
---|
77 | TypeDef HEVENT = *_System_DeclareHandle_HEVENT
|
---|
78 |
|
---|
79 | TypeDef ATOM = Word
|
---|
80 | TypeDef SPHANDLE = *HANDLE
|
---|
81 | TypeDef LPHANDLE = *HANDLE
|
---|
82 | TypeDef HGLOBAL = HANDLE
|
---|
83 | TypeDef HLOCAL = HANDLE
|
---|
84 | TypeDef GLOBALHANDLE = HANDLE
|
---|
85 | TypeDef LOCALHANDLE = HANDLE
|
---|
86 |
|
---|
87 | TypeDef FARPROC = *Function() As LONG_PTR
|
---|
88 | TypeDef NEARPROC = *Function() As LONG_PTR
|
---|
89 | TypeDef PROC = *Function() As LONG_PTR
|
---|
90 |
|
---|
91 | TypeDef HGDIOBJ = VoidPtr
|
---|
92 |
|
---|
93 | Type _System_DeclareHandle_HKEY:unused As DWord:End Type
|
---|
94 | TypeDef HKEY = *_System_DeclareHandle_HKEY
|
---|
95 | TypeDef PHKEY = *HKEY
|
---|
96 |
|
---|
97 | Type _System_DeclareHandle_HACCEL:unused As DWord:End Type
|
---|
98 | TypeDef HACCEL = *_System_DeclareHandle_HACCEL
|
---|
99 | Type _System_DeclareHandle_HBITMAP:unused As DWord:End Type
|
---|
100 | TypeDef HBITMAP = *_System_DeclareHandle_HBITMAP
|
---|
101 | Type _System_DeclareHandle_HBRUSH:unused As DWord:End Type
|
---|
102 | TypeDef HBRUSH = *_System_DeclareHandle_HBRUSH
|
---|
103 | Type _System_DeclareHandle_HCOLORSPACE:unused As DWord:End Type
|
---|
104 | TypeDef HCOLORSPACE = *_System_DeclareHandle_HCOLORSPACE
|
---|
105 | Type _System_DeclareHandle_HDC:unused As DWord:End Type
|
---|
106 | TypeDef HDC = *_System_DeclareHandle_HDC
|
---|
107 | Type _System_DeclareHandle_HGLRC:unused As DWord:End Type
|
---|
108 | TypeDef HGLRC = *_System_DeclareHandle_HGLRC
|
---|
109 | Type _System_DeclareHandle_HDESK:unused As DWord:End Type
|
---|
110 | TypeDef HDESK = *_System_DeclareHandle_HDESK
|
---|
111 | Type _System_DeclareHandle_HENHMETAFILE:unused As DWord:End Type
|
---|
112 | TypeDef HENHMETAFILE = *_System_DeclareHandle_HENHMETAFILE
|
---|
113 | Type _System_DeclareHandle_HFONT:unused As DWord:End Type
|
---|
114 | TypeDef HFONT = *_System_DeclareHandle_HFONT
|
---|
115 | Type _System_DeclareHandle_HICON:unused As DWord:End Type
|
---|
116 | TypeDef HICON = *_System_DeclareHandle_HICON
|
---|
117 | Type _System_DeclareHandle_HMENU:unused As DWord:End Type
|
---|
118 | TypeDef HMENU = *_System_DeclareHandle_HMENU
|
---|
119 | Type _System_DeclareHandle_HMETAFILE:unused As DWord:End Type
|
---|
120 | TypeDef HMETAFILE = *_System_DeclareHandle_HMETAFILE
|
---|
121 | Type _System_DeclareHandle_HINSTANCE:unused As DWord:End Type
|
---|
122 | TypeDef HINSTANCE = *_System_DeclareHandle_HINSTANCE
|
---|
123 | TypeDef HMODULE = HINSTANCE
|
---|
124 | Type _System_DeclareHandle_HPALETTE:unused As DWord:End Type
|
---|
125 | TypeDef HPALETTE = *_System_DeclareHandle_HPALETTE
|
---|
126 | Type _System_DeclareHandle_HPEN:unused As DWord:End Type
|
---|
127 | TypeDef HPEN = *_System_DeclareHandle_HPEN
|
---|
128 | Type _System_DeclareHandle_HRGN:unused As DWord:End Type
|
---|
129 | TypeDef HRGN = *_System_DeclareHandle_HRGN
|
---|
130 | Type _System_DeclareHandle_HRSRC:unused As DWord:End Type
|
---|
131 | TypeDef HRSRC = *_System_DeclareHandle_HRSRC
|
---|
132 | Type _System_DeclareHandle_HSPRITE:unused As DWord:End Type
|
---|
133 | TypeDef HSPRITE = *_System_DeclareHandle_HSPRITE
|
---|
134 | Type _System_DeclareHandle_HSTR:unused As DWord:End Type
|
---|
135 | TypeDef HSTR = *_System_DeclareHandle_HSTR
|
---|
136 | Type _System_DeclareHandle_HTASK:unused As DWord:End Type
|
---|
137 | TypeDef HTASK = *_System_DeclareHandle_HTASK
|
---|
138 | Type _System_DeclareHandle_HWINSTA:unused As DWord:End Type
|
---|
139 | TypeDef HWINSTA = *_System_DeclareHandle_HWINSTA
|
---|
140 | Type _System_DeclareHandle_HKL:unused As DWord:End Type
|
---|
141 | TypeDef HKL = *_System_DeclareHandle_HKL
|
---|
142 |
|
---|
143 | Type _System_DeclareHandle_HWINEVENTHOOK:unused As DWord:End Type
|
---|
144 | TypeDef HWINEVENTHOOK = *_System_DeclareHandle_HWINEVENTHOOK
|
---|
145 |
|
---|
146 | '#if(WINVER >= 0x0500)
|
---|
147 | Type _System_DeclareHandle_HMONITOR:unused As DWord:End Type
|
---|
148 | TypeDef HMONITOR = *_System_DeclareHandle_HMONITOR
|
---|
149 | Type _System_DeclareHandle_HUMPD:unused As DWord:End Type
|
---|
150 | TypeDef HUMPD = *_System_DeclareHandle_HUMPD
|
---|
151 | '#endif
|
---|
152 |
|
---|
153 | TypeDef HFILE = Long
|
---|
154 | TypeDef HCURSOR = HICON
|
---|
155 |
|
---|
156 | TypeDef COLORREF = DWord
|
---|
157 | TypeDef LPCOLORREF = *DWord
|
---|
158 |
|
---|
159 | Const HFILE_ERROR = ((-1) As HFILE)
|
---|
160 |
|
---|
161 | Type RECT
|
---|
162 | left As Long
|
---|
163 | top As Long
|
---|
164 | right As Long
|
---|
165 | bottom As Long
|
---|
166 | End Type
|
---|
167 |
|
---|
168 | TypeDef PRECT = *RECT
|
---|
169 | TypeDef NPRECT = *RECT
|
---|
170 | TypeDef LPRECT = *RECT
|
---|
171 | TypeDef LPCRECT = *RECT
|
---|
172 |
|
---|
173 | TypeDef RECTL = RECT
|
---|
174 | TypeDef PRECTL = *RECTL
|
---|
175 | TypeDef LPRECTL = *RECTL
|
---|
176 | TypeDef LPCRECTL = *RECTL
|
---|
177 |
|
---|
178 | Type POINTAPI
|
---|
179 | x As Long
|
---|
180 | y As Long
|
---|
181 | End Type
|
---|
182 |
|
---|
183 | TypeDef PPOINT = *POINTAPI
|
---|
184 | TypeDef NPPOINT = *POINTAPI
|
---|
185 | TypeDef LPPOINT = *POINTAPI
|
---|
186 |
|
---|
187 | TypeDef POINTL = POINTAPI
|
---|
188 | TypeDef PPOINTL = *POINTL
|
---|
189 |
|
---|
190 | Type SIZE
|
---|
191 | cx As Long
|
---|
192 | cy As Long
|
---|
193 | End Type
|
---|
194 |
|
---|
195 | TypeDef PSIZE = *SIZE
|
---|
196 | TypeDef LPSIZE = *SIZE
|
---|
197 |
|
---|
198 | TypeDef SIZEL = SIZE
|
---|
199 | TypeDef PSIZEL = *SIZEL
|
---|
200 | TypeDef LPSIZEL = *SIZEL
|
---|
201 |
|
---|
202 | Type POINTS
|
---|
203 | x As Integer
|
---|
204 | y As Integer
|
---|
205 | End Type
|
---|
206 |
|
---|
207 | TypeDef PPOINTS = *POINTS
|
---|
208 | TypeDef LPPOINTS = *POINTS
|
---|
209 |
|
---|
210 | Type FILETIME
|
---|
211 | dwLowDateTime As DWord
|
---|
212 | dwHighDateTime As DWord
|
---|
213 | End Type
|
---|
214 |
|
---|
215 | TypeDef PFILETIME = *FILETIME
|
---|
216 | TypeDef LPFILETIME = *FILETIME
|
---|
217 |
|
---|
218 | Const DM_UPDATE = 1
|
---|
219 | Const DM_COPY = 2
|
---|
220 | Const DM_PROMPT = 4
|
---|
221 | Const DM_MODIFY = 8
|
---|
222 |
|
---|
223 | Const DM_IN_BUFFER = DM_MODIFY
|
---|
224 | Const DM_IN_PROMPT = DM_PROMPT
|
---|
225 | Const DM_OUT_BUFFER = DM_COPY
|
---|
226 | Const DM_OUT_DEFAULT = DM_UPDATE
|
---|
227 |
|
---|
228 | Const DC_FIELDS = 1
|
---|
229 | Const DC_PAPERS = 2
|
---|
230 | Const DC_PAPERSIZE = 3
|
---|
231 | Const DC_MINEXTENT = 4
|
---|
232 | Const DC_MAXEXTENT = 5
|
---|
233 | Const DC_BINS = 6
|
---|
234 | Const DC_DUPLEX = 7
|
---|
235 | Const DC_SIZE = 8
|
---|
236 | Const DC_EXTRA = 9
|
---|
237 | Const DC_VERSION = 10
|
---|
238 | Const DC_DRIVER = 11
|
---|
239 | Const DC_BINNAMES = 12
|
---|
240 | Const DC_ENUMRESOLUTIONS = 13
|
---|
241 | Const DC_FILEDEPENDENCIES = 14
|
---|
242 | Const DC_TRUETYPE = 15
|
---|
243 | Const DC_PAPERNAMES = 16
|
---|
244 | Const DC_ORIENTATION = 17
|
---|
245 | Const DC_COPIES = 18
|
---|