source: trunk/Include/winver.ab@ 497

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

インクルードガードとその他不要な前処理定義などの削除

File size: 6.0 KB
Line 
1' Winver.ab
2
3#ifdef UNICODE
4Const _FuncName_VerFindFile = "VerFindFileW"
5Const _FuncName_VerInstallFile = "VerInstallFileW"
6Const _FuncName_GetFileVersionInfoSize = "GetFileVersionInfoSizeW"
7Const _FuncName_GetFileVersionInfo = "GetFileVersionInfoW"
8Const _FuncName_GetFileVersionInfoSizeEx = "GetFileVersionInfoSizeExW"
9Const _FuncName_GetFileVersionInfoEx = "GetFileVersionInfoExW"
10Const _FuncName_VerLanguageName = "VerLanguageNameW"
11Const _FuncName_VerQueryValue = "VerQueryValueW"
12#else
13Const _FuncName_VerFindFile = "VerFindFileA"
14Const _FuncName_VerInstallFile = "VerInstallFileA"
15Const _FuncName_GetFileVersionInfoSize = "GetFileVersionInfoSizeA"
16Const _FuncName_GetFileVersionInfo = "GetFileVersionInfoA"
17Const _FuncName_GetFileVersionInfoSizeEx = "GetFileVersionInfoSizeExA"
18Const _FuncName_GetFileVersionInfoEx = "GetFileVersionInfoExA"
19Const _FuncName_VerLanguageName = "VerLanguageNameA"
20Const _FuncName_VerQueryValue = "VerQueryValueA"
21#endif
22
23' Symbols
24Const VS_FILE_INFO = RT_VERSION
25Const VS_VERSION_INFO = 1
26Const VS_USER_DEFINED = 100
27
28' VS_VERSION.dwFileFlags
29Const VS_FFI_SIGNATURE = &hFEEF04BD
30Const VS_FFI_STRUCVERSION = &h00010000
31Const VS_FFI_FILEFLAGSMASK = &h0000003F
32
33' VS_VERSION.dwFileFlags
34Const VS_FF_DEBUG = &h00000001
35Const VS_FF_PRERELEASE = &h00000002
36Const VS_FF_PATCHED = &h00000004
37Const VS_FF_PRIVATEBUILD = &h00000008
38Const VS_FF_INFOINFERRED = &h00000010
39Const VS_FF_SPECIALBUILD = &h00000020
40
41' VS_VERSION.dwFileOS
42Const VOS_UNKNOWN = &h00000000
43Const VOS_DOS = &h00010000
44Const VOS_OS216 = &h00020000
45Const VOS_OS232 = &h00030000
46Const VOS_NT = &h00040000
47Const VOS_WINCE = &h00050000
48
49Const VOS__BASE = &h00000000
50Const VOS__WINDOWS16 = &h00000001
51Const VOS__PM16 = &h00000002
52Const VOS__PM32 = &h00000003
53Const VOS__WINDOWS32 = &h00000004
54
55Const VOS_DOS_WINDOWS16 = &h00010001
56Const VOS_DOS_WINDOWS32 = &h00010004
57Const VOS_OS216_PM16 = &h00020002
58Const VOS_OS232_PM32 = &h00030003
59Const VOS_NT_WINDOWS32 = &h00040004
60
61' VS_VERSION.dwFileType
62Const VFT_UNKNOWN = &h00000000
63Const VFT_APP = &h00000001
64Const VFT_DLL = &h00000002
65Const VFT_DRV = &h00000003
66Const VFT_FONT = &h00000004
67Const VFT_VXD = &h00000005
68Const VFT_STATIC_LIB = &h00000007
69
70' VS_VERSION.dwFileSubtype for VFT_WINDOWS_DRV
71Const VFT2_UNKNOWN = &h00000000
72Const VFT2_DRV_PRINTER = &h00000001
73Const VFT2_DRV_KEYBOARD = &h00000002
74Const VFT2_DRV_LANGUAGE = &h00000003
75Const VFT2_DRV_DISPLAY = &h00000004
76Const VFT2_DRV_MOUSE = &h00000005
77Const VFT2_DRV_NETWORK = &h00000006
78Const VFT2_DRV_SYSTEM = &h00000007
79Const VFT2_DRV_INSTALLABLE = &h00000008
80Const VFT2_DRV_SOUND = &h00000009
81Const VFT2_DRV_COMM = &h0000000A
82Const VFT2_DRV_INPUTMETHOD = &h0000000B
83Const VFT2_DRV_VERSIONED_PRINTER = &h0000000C
84
85' VS_VERSION.dwFileSubtype for VFT_WINDOWS_FONT
86Const VFT2_FONT_RASTER = &h00000001
87Const VFT2_FONT_VECTOR = &h00000002
88Const VFT2_FONT_TRUETYPE = &h00000003
89
90' VerFindFile() flags
91Const VFFF_ISSHAREDFILE = &h0001
92
93Const VFF_CURNEDEST = &h0001
94Const VFF_FILEINUSE = &h0002
95Const VFF_BUFFTOOSMALL = &h0004
96
97' VerInstallFile() flags
98Const VIFF_FORCEINSTALL = &h0001
99Const VIFF_DONTDELETEOLD = &h0002
100
101Const VIF_TEMPFILE = &h00000001
102Const VIF_MISMATCH = &h00000002
103Const VIF_SRCOLD = &h00000004
104
105Const VIF_DIFFLANG = &h00000008
106Const VIF_DIFFCODEPG = &h00000010
107Const VIF_DIFFTYPE = &h00000020
108
109Const VIF_WRITEPROT = &h00000040
110Const VIF_FILEINUSE = &h00000080
111Const VIF_OUTOFSPACE = &h00000100
112Const VIF_ACCESSVIOLATION = &h00000200
113Const VIF_SHARINGVIOLATION = &h00000400
114Const VIF_CANNOTCREATE = &h00000800
115Const VIF_CANNOTDELETE = &h00001000
116Const VIF_CANNOTRENAME = &h00002000
117Const VIF_CANNOTDELETECUR = &h00004000
118Const VIF_OUTOFMEMORY = &h00008000
119
120Const VIF_CANNOTREADSRC = &h00010000
121Const VIF_CANNOTREADDST = &h00020000
122
123Const VIF_BUFFTOOSMALL = &h00040000
124Const VIF_CANNOTLOADLZ32 = &h00080000
125Const VIF_CANNOTLOADCABINET = &h00100000
126
127Const FILE_VER_GET_LOCALISED = &h01
128Const FILE_VER_GET_NEUTRAL = &h02
129
130' Types and structures
131
132Type VS_FIXEDFILEINFO
133 dwSignature As DWord
134 dwStrucVersion As DWord
135 dwFileVersionMS As DWord
136 dwFileVersionLS As DWord
137 dwProductVersionMS As DWord
138 dwProductVersionLS As DWord
139 dwFileFlagsMask As DWord
140 dwFileFlags As DWord
141 dwFileOS As DWord
142 dwFileType As DWord
143 dwFileSubtype As DWord
144 dwFileDateMS As DWord
145 dwFileDateLS As DWord
146End Type
147
148' Function prototypes
149
150Declare Function VerFindFile Lib "version" Alias _FuncName_VerFindFile (
151 uFlags As DWord,
152 szFileName As LPCTSTR,
153 szWinDir As LPCTSTR,
154 szAppDir As LPCTSTR,
155 szCurDir As LPTSTR,
156 ByRef uCurDirLen As DWord,
157 szDestDir As LPTSTR,
158 ByRef uDestDirLen As DWord _
159) As DWord
160
161Declare Function VerInstallFile Lib "version" Alias _FuncName_VerInstallFile (
162 uFlags As DWord,
163 szSrcFileName As LPCTSTR,
164 szDestFileName As LPCTSTR,
165 szSrcDir As LPCTSTR,
166 szDestDir As LPCTSTR,
167 szTmpFile As LPTSTR,
168 ByRef uTmpFileLen As DWord _
169) As DWord
170
171Declare Function GetFileVersionInfoSize Lib "version" Alias _FuncName_GetFileVersionInfoSize (
172 lptstrFilename As LPCTSTR,
173 ByRef dwHandle As DWord _
174) As DWord
175
176Declare Function GetFileVersionInfo Lib "version" Alias _FuncName_GetFileVersionInfo (
177 lptstrFilename As LPCTSTR,
178 dwHandle As DWord,
179 dwLen As DWord,
180 lpData As VoidPtr _
181) As BOOL
182
183Declare Function GetFileVersionInfoSizeEx Lib "version" Alias _FuncName_GetFileVersionInfoSizeEx (
184 dwFlags As DWord,
185 lptstrFilename As LPCTSTR,
186 ByRef dwHandle As DWord _
187) As DWord
188
189Declare Function GetFileVersionInfoEx Lib "version" Alias _FuncName_GetFileVersionInfoEx (
190 dwFlags As DWord,
191 lptstrFilename As LPCTSTR,
192 dwHandle As DWord,
193 dwLen As DWord,
194 lpData As VoidPtr _
195) As BOOL
196
197Declare Function VerLanguageName Lib "version" Alias _FuncName_VerLanguageName (
198 wLang As DWord,
199 szLang As LPTSTR,
200 cchLang As DWord _
201) As DWord
202
203Declare Function VerQueryValue Lib "version" Alias _FuncName_VerQueryValue (
204 pBlock As VoidPtr,
205 lpSubBlock As LPCTSTR,
206 ByRef lpBuffer As VoidPtr,
207 ByRef uLen As DWord _
208) As BOOL
Note: See TracBrowser for help on using the repository browser.