1 | ' Windows.sbp - declarations file for Windows API.
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifndef _INC_WINDOWS
|
---|
5 | #define _INC_WINDOWS
|
---|
6 |
|
---|
7 |
|
---|
8 | TypeDef HANDLE = VoidPtr
|
---|
9 |
|
---|
10 | 'variable type - System
|
---|
11 | TypeDef HGLOBAL = HANDLE
|
---|
12 | TypeDef HLOCAL = HANDLE
|
---|
13 | Type _System_DeclareHandle_HINSTANCE:unused As DWord:End Type
|
---|
14 | TypeDef HINSTANCE = *_System_DeclareHandle_HINSTANCE
|
---|
15 | TypeDef HMODULE = HINSTANCE
|
---|
16 | Type _System_DeclareHandle_HKEY:unused As DWord:End Type
|
---|
17 | TypeDef HKEY = *_System_DeclareHandle_HKEY
|
---|
18 | TypeDef HFILE = Long
|
---|
19 | Type _System_DeclareHandle_HANDLE:unused As DWord:End Type
|
---|
20 | TypeDef HRSRC = *_System_DeclareHandle_HANDLE
|
---|
21 |
|
---|
22 | 'variable type - User
|
---|
23 | Type _System_DeclareHandle_HMENU:unused As DWord:End Type
|
---|
24 | TypeDef HMENU = *_System_DeclareHandle_HMENU
|
---|
25 | Type _System_DeclareHandle_HWND:unused As DWord:End Type
|
---|
26 | TypeDef HWND = *_System_DeclareHandle_HWND
|
---|
27 | Type _System_DeclareHandle_HACCEL:unused As DWord:End Type
|
---|
28 | TypeDef HACCEL = *_System_DeclareHandle_HACCEL
|
---|
29 |
|
---|
30 | 'variable type - GDI
|
---|
31 | Type _System_DeclareHandle_HBITMAP:unused As DWord:End Type
|
---|
32 | TypeDef HBITMAP = *_System_DeclareHandle_HBITMAP
|
---|
33 | Type _System_DeclareHandle_HBRUSH:unused As DWord:End Type
|
---|
34 | TypeDef HBRUSH = *_System_DeclareHandle_HBRUSH
|
---|
35 | Type _System_DeclareHandle_HCURSOR:unused As DWord:End Type
|
---|
36 | TypeDef HCURSOR = *_System_DeclareHandle_HCURSOR
|
---|
37 | Type _System_DeclareHandle_HDC:unused As DWord:End Type
|
---|
38 | TypeDef HDC = *_System_DeclareHandle_HDC
|
---|
39 | Type _System_DeclareHandle_HFONT:unused As DWord:End Type
|
---|
40 | TypeDef HFONT = *_System_DeclareHandle_HFONT
|
---|
41 | Type _System_DeclareHandle_HGDIOBJ:unused As DWord:End Type
|
---|
42 | TypeDef HGDIOBJ = *_System_DeclareHandle_HGDIOBJ
|
---|
43 | Type _System_DeclareHandle_HICON:unused As DWord:End Type
|
---|
44 | TypeDef HICON = *_System_DeclareHandle_HICON
|
---|
45 | Type _System_DeclareHandle_HPEN:unused As DWord:End Type
|
---|
46 | TypeDef HPEN = *_System_DeclareHandle_HPEN
|
---|
47 | Type _System_DeclareHandle_HRGN:unused As DWord:End Type
|
---|
48 | TypeDef HRGN = *_System_DeclareHandle_HRGN
|
---|
49 | Type _System_DeclareHandle_HMETAFILE:unused As DWord:End Type
|
---|
50 | TypeDef HMETAFILE = *_System_DeclareHandle_HMETAFILE
|
---|
51 | Type _System_DeclareHandle_HENHMETAFILE:unused As DWord:End Type
|
---|
52 | TypeDef HENHMETAFILE = *_System_DeclareHandle_HENHMETAFILE
|
---|
53 | Type _System_DeclareHandle_HTASK:unused As DWord:End Type
|
---|
54 | TypeDef HTASK = *_System_DeclareHandle_HTASK
|
---|
55 | Type _System_DeclareHandle_HHOOK:unused As DWord:End Type
|
---|
56 | TypeDef HHOOK = *_System_DeclareHandle_HHOOK
|
---|
57 | Type _System_DeclareHandle_HMONITOR:unused As DWord:End Type
|
---|
58 | TypeDef HMONITOR = *_System_DeclareHandle_HMONITOR
|
---|
59 |
|
---|
60 | 'variable type - Shell
|
---|
61 | Type _System_DeclareHandle_HDROP:unused As DWord:End Type
|
---|
62 | TypeDef HDROP = *_System_DeclareHandle_HDROP
|
---|
63 |
|
---|
64 |
|
---|
65 | TypeDef LRESULT = LONG_PTR
|
---|
66 |
|
---|
67 | TypeDef WPARAM = ULONG_PTR
|
---|
68 | TypeDef LPARAM = LONG_PTR
|
---|
69 |
|
---|
70 | TypeDef TCHAR = Char
|
---|
71 |
|
---|
72 | #ifdef UNICODE
|
---|
73 | TypeDef TBYTE = Char
|
---|
74 |
|
---|
75 | TypeDef PSTR = *SByte
|
---|
76 | TypeDef PCSTR = *SByte
|
---|
77 |
|
---|
78 | TypeDef PWSTR = *Char
|
---|
79 | TypeDef PCWSTR = *Char
|
---|
80 |
|
---|
81 | TypeDef PTSTR = PWSTR
|
---|
82 | TypeDef PCTSTR = PCWSTR
|
---|
83 | #else
|
---|
84 | TypeDef TBYTE = Byte
|
---|
85 |
|
---|
86 | TypeDef PSTR = *Char
|
---|
87 | TypeDef PCSTR = *Char
|
---|
88 |
|
---|
89 | TypeDef PWSTR = *WCHAR
|
---|
90 | TypeDef PCWSTR = *WCHAR
|
---|
91 |
|
---|
92 | TypeDef PTSTR = PSTR
|
---|
93 | TypeDef PCTSTR = PCSTR
|
---|
94 | #endif
|
---|
95 |
|
---|
96 | TypeDef LPSTR = PSTR
|
---|
97 | TypeDef LPCSTR = PCSTR
|
---|
98 |
|
---|
99 | TypeDef LPWSTR = PWSTR
|
---|
100 | TypeDef LPCWSTR = PCWSTR
|
---|
101 |
|
---|
102 | TypeDef LPTSTR = PTSTR
|
---|
103 | TypeDef LPCTSTR = PCTSTR
|
---|
104 |
|
---|
105 | TypeDef OLECHAR = WCHAR
|
---|
106 | TypeDef LPOLESTR = *OLECHAR
|
---|
107 | TypeDef LPCOLESTR = LPOLESTR
|
---|
108 |
|
---|
109 | TypeDef BSTR = LPOLESTR
|
---|
110 |
|
---|
111 | TypeDef UCSCHAR = DWord
|
---|
112 |
|
---|
113 | Const UCSCHAR_INVALID_CHARACTER = &hffffffff As UCSCHAR
|
---|
114 | Const MIN_UCSCHAR = 0 As UCSCHAR
|
---|
115 | Const MAX_UCSCHAR = &h0010ffff As UCSCHAR
|
---|
116 |
|
---|
117 | TypeDef LANGID = Word
|
---|
118 | TypeDef LCID = DWord
|
---|
119 | TypeDef LCTYPE = DWord
|
---|
120 | TypeDef LGRPID = DWord
|
---|
121 |
|
---|
122 | TypeDef HRESULT = Long
|
---|
123 | TypeDef ATOM = Word
|
---|
124 | TypeDef COLORREF = DWord
|
---|
125 |
|
---|
126 | TypeDef PROPID = DWord
|
---|
127 |
|
---|
128 | TypeDef RECTL = RECT
|
---|
129 | TypeDef SIZEL = SIZE
|
---|
130 |
|
---|
131 | TypeDef PVOID = VoidPtr
|
---|
132 | TypeDef LPVOID = VoidPtr
|
---|
133 | TypeDef LPCVOID = VoidPtr
|
---|
134 |
|
---|
135 | TypeDef FARPROC = *Function() As LONG_PTR
|
---|
136 | TypeDef NEARPROC = FARPROC
|
---|
137 | TypeDef PROC = FARPROC
|
---|
138 | TypeDef WNDPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
|
---|
139 | TypeDef DLGPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LONG_PTR
|
---|
140 |
|
---|
141 | #require <api_winerror.sbp>
|
---|
142 | #require <api_system.sbp>
|
---|
143 | #require <api_window.sbp>
|
---|
144 | #require <api_commdlg.sbp>
|
---|
145 | #require <api_gdi.sbp>
|
---|
146 | #require <api_shell.sbp>
|
---|
147 | #require <api_reg.sbp>
|
---|
148 | #require <api_msg.sbp>
|
---|
149 | #require <api_windowstyles.sbp>
|
---|
150 | #require <api_winspool.sbp>
|
---|
151 | #require <winver.ab>
|
---|
152 |
|
---|
153 | #endif '_INC_WINDOWS
|
---|