source: Include/windows.sbp@ 166

Last change on this file since 166 was 160, checked in by イグトランス (egtra), 18 years ago

API宣言の追加(主にフォーラムに投稿されたものより)

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