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