source: Include/windows.sbp@ 153

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

Unicode (#50) 前準備
Byte→Char (#51) 型名は殆ど完了、ただし中身までは手を付けていないものが多い

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