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