source: trunk/ab5.0/ablib/src/windef.ab @ 560

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

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

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