source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/winver.h@ 1175

Last change on this file since 1175 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 6.8 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef VER_H
7#define VER_H
8
9#include <_mingw.h>
10#include <_mingw_unicode.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/* defines from verrsrc.h file */
17#define VS_FILE_INFO RT_VERSION
18#define VS_VERSION_INFO 1
19#define VS_USER_DEFINED 100
20
21#define VS_FFI_SIGNATURE __MSABI_LONG(0xFEEF04BD)
22#define VS_FFI_STRUCVERSION __MSABI_LONG(0x00010000)
23#define VS_FFI_FILEFLAGSMASK __MSABI_LONG(0x0000003F)
24
25#define VS_FF_DEBUG __MSABI_LONG(0x00000001)
26#define VS_FF_PRERELEASE __MSABI_LONG(0x00000002)
27#define VS_FF_PATCHED __MSABI_LONG(0x00000004)
28#define VS_FF_PRIVATEBUILD __MSABI_LONG(0x00000008)
29#define VS_FF_INFOINFERRED __MSABI_LONG(0x00000010)
30#define VS_FF_SPECIALBUILD __MSABI_LONG(0x00000020)
31
32#define VOS_UNKNOWN __MSABI_LONG(0x00000000)
33#define VOS_DOS __MSABI_LONG(0x00010000)
34#define VOS_OS216 __MSABI_LONG(0x00020000)
35#define VOS_OS232 __MSABI_LONG(0x00030000)
36#define VOS_NT __MSABI_LONG(0x00040000)
37#define VOS_WINCE __MSABI_LONG(0x00050000)
38
39#define VOS__BASE __MSABI_LONG(0x00000000)
40#define VOS__WINDOWS16 __MSABI_LONG(0x00000001)
41#define VOS__PM16 __MSABI_LONG(0x00000002)
42#define VOS__PM32 __MSABI_LONG(0x00000003)
43#define VOS__WINDOWS32 __MSABI_LONG(0x00000004)
44
45#define VOS_DOS_WINDOWS16 __MSABI_LONG(0x00010001)
46#define VOS_DOS_WINDOWS32 __MSABI_LONG(0x00010004)
47#define VOS_OS216_PM16 __MSABI_LONG(0x00020002)
48#define VOS_OS232_PM32 __MSABI_LONG(0x00030003)
49#define VOS_NT_WINDOWS32 __MSABI_LONG(0x00040004)
50
51#define VFT_UNKNOWN __MSABI_LONG(0x00000000)
52#define VFT_APP __MSABI_LONG(0x00000001)
53#define VFT_DLL __MSABI_LONG(0x00000002)
54#define VFT_DRV __MSABI_LONG(0x00000003)
55#define VFT_FONT __MSABI_LONG(0x00000004)
56#define VFT_VXD __MSABI_LONG(0x00000005)
57#define VFT_STATIC_LIB __MSABI_LONG(0x00000007)
58
59#define VFT2_UNKNOWN __MSABI_LONG(0x00000000)
60#define VFT2_DRV_PRINTER __MSABI_LONG(0x00000001)
61#define VFT2_DRV_KEYBOARD __MSABI_LONG(0x00000002)
62#define VFT2_DRV_LANGUAGE __MSABI_LONG(0x00000003)
63#define VFT2_DRV_DISPLAY __MSABI_LONG(0x00000004)
64#define VFT2_DRV_MOUSE __MSABI_LONG(0x00000005)
65#define VFT2_DRV_NETWORK __MSABI_LONG(0x00000006)
66#define VFT2_DRV_SYSTEM __MSABI_LONG(0x00000007)
67#define VFT2_DRV_INSTALLABLE __MSABI_LONG(0x00000008)
68#define VFT2_DRV_SOUND __MSABI_LONG(0x00000009)
69#define VFT2_DRV_COMM __MSABI_LONG(0x0000000A)
70#define VFT2_DRV_INPUTMETHOD __MSABI_LONG(0x0000000B)
71#define VFT2_DRV_VERSIONED_PRINTER __MSABI_LONG(0x0000000C)
72
73#define VFT2_FONT_RASTER __MSABI_LONG(0x00000001)
74#define VFT2_FONT_VECTOR __MSABI_LONG(0x00000002)
75#define VFT2_FONT_TRUETYPE __MSABI_LONG(0x00000003)
76
77#define VFFF_ISSHAREDFILE 0x0001
78
79#define VFF_CURNEDEST 0x0001
80#define VFF_FILEINUSE 0x0002
81#define VFF_BUFFTOOSMALL 0x0004
82
83#define VIFF_FORCEINSTALL 0x0001
84#define VIFF_DONTDELETEOLD 0x0002
85
86#define VIF_TEMPFILE __MSABI_LONG(0x00000001)
87#define VIF_MISMATCH __MSABI_LONG(0x00000002)
88#define VIF_SRCOLD __MSABI_LONG(0x00000004)
89
90#define VIF_DIFFLANG __MSABI_LONG(0x00000008)
91#define VIF_DIFFCODEPG __MSABI_LONG(0x00000010)
92#define VIF_DIFFTYPE __MSABI_LONG(0x00000020)
93
94#define VIF_WRITEPROT __MSABI_LONG(0x00000040)
95#define VIF_FILEINUSE __MSABI_LONG(0x00000080)
96#define VIF_OUTOFSPACE __MSABI_LONG(0x00000100)
97#define VIF_ACCESSVIOLATION __MSABI_LONG(0x00000200)
98#define VIF_SHARINGVIOLATION __MSABI_LONG(0x00000400)
99#define VIF_CANNOTCREATE __MSABI_LONG(0x00000800)
100#define VIF_CANNOTDELETE __MSABI_LONG(0x00001000)
101#define VIF_CANNOTRENAME __MSABI_LONG(0x00002000)
102#define VIF_CANNOTDELETECUR __MSABI_LONG(0x00004000)
103#define VIF_OUTOFMEMORY __MSABI_LONG(0x00008000)
104
105#define VIF_CANNOTREADSRC __MSABI_LONG(0x00010000)
106#define VIF_CANNOTREADDST __MSABI_LONG(0x00020000)
107
108#define VIF_BUFFTOOSMALL __MSABI_LONG(0x00040000)
109#define VIF_CANNOTLOADLZ32 __MSABI_LONG(0x00080000)
110#define VIF_CANNOTLOADCABINET __MSABI_LONG(0x00100000)
111
112#ifndef RC_INVOKED
113
114#define FILE_VER_GET_LOCALISED 0x01
115#define FILE_VER_GET_NEUTRAL 0x02
116#define FILE_VER_GET_PREFETCHED 0x04
117
118 typedef struct tagVS_FIXEDFILEINFO
119 {
120 DWORD dwSignature;
121 DWORD dwStrucVersion;
122 DWORD dwFileVersionMS;
123 DWORD dwFileVersionLS;
124 DWORD dwProductVersionMS;
125 DWORD dwProductVersionLS;
126 DWORD dwFileFlagsMask;
127 DWORD dwFileFlags;
128 DWORD dwFileOS;
129 DWORD dwFileType;
130 DWORD dwFileSubtype;
131 DWORD dwFileDateMS;
132 DWORD dwFileDateLS;
133 } VS_FIXEDFILEINFO;
134
135#define VerFindFile __MINGW_NAME_AW(VerFindFile)
136#define VerInstallFile __MINGW_NAME_AW(VerInstallFile)
137#define GetFileVersionInfoSize __MINGW_NAME_AW(GetFileVersionInfoSize)
138#define GetFileVersionInfoSizeEx __MINGW_NAME_AW(GetFileVersionInfoSizeEx)
139#define GetFileVersionInfo __MINGW_NAME_AW(GetFileVersionInfo)
140#define GetFileVersionInfoEx __MINGW_NAME_AW(GetFileVersionInfoEx)
141#define VerLanguageName __MINGW_NAME_AW(VerLanguageName)
142#define VerQueryValue __MINGW_NAME_AW(VerQueryValue)
143
144#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
145 DWORD WINAPI VerFindFileA(DWORD uFlags,LPSTR szFileName,LPSTR szWinDir,LPSTR szAppDir,LPSTR szCurDir,PUINT lpuCurDirLen,LPSTR szDestDir,PUINT lpuDestDirLen);
146 DWORD WINAPI VerFindFileW(DWORD uFlags,LPWSTR szFileName,LPWSTR szWinDir,LPWSTR szAppDir,LPWSTR szCurDir,PUINT lpuCurDirLen,LPWSTR szDestDir,PUINT lpuDestDirLen);
147 DWORD WINAPI VerInstallFileA(DWORD uFlags,LPSTR szSrcFileName,LPSTR szDestFileName,LPSTR szSrcDir,LPSTR szDestDir,LPSTR szCurDir,LPSTR szTmpFile,PUINT lpuTmpFileLen);
148 DWORD WINAPI VerInstallFileW(DWORD uFlags,LPWSTR szSrcFileName,LPWSTR szDestFileName,LPWSTR szSrcDir,LPWSTR szDestDir,LPWSTR szCurDir,LPWSTR szTmpFile,PUINT lpuTmpFileLen);
149 DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR lptstrFilename,LPDWORD lpdwHandle);
150 DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR lptstrFilename,LPDWORD lpdwHandle);
151 DWORD WINAPI GetFileVersionInfoSizeExA(DWORD dwFlags, LPCSTR lpwstrFilename, LPDWORD lpdwHandle);
152 DWORD WINAPI GetFileVersionInfoSizeExW(DWORD dwFlags, LPCWSTR lpwstrFilename, LPDWORD lpdwHandle);
153 WINBOOL WINAPI GetFileVersionInfoA(LPCSTR lptstrFilename,DWORD dwHandle,DWORD dwLen,LPVOID lpData);
154 WINBOOL WINAPI GetFileVersionInfoW(LPCWSTR lptstrFilename,DWORD dwHandle,DWORD dwLen,LPVOID lpData);
155 WINBOOL WINAPI GetFileVersionInfoExA(DWORD dwFlags, LPCSTR lpwstrFilename, DWORD dwHandle, DWORD dwLen, LPVOID lpData);
156 WINBOOL WINAPI GetFileVersionInfoExW(DWORD dwFlags, LPCWSTR lpwstrFilename, DWORD dwHandle, DWORD dwLen, LPVOID lpData);
157#endif
158
159#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
160 DWORD WINAPI VerLanguageNameA(DWORD wLang,LPSTR szLang,DWORD nSize);
161 DWORD WINAPI VerLanguageNameW(DWORD wLang,LPWSTR szLang,DWORD nSize);
162 WINBOOL WINAPI VerQueryValueA(LPCVOID pBlock,LPCSTR lpSubBlock,LPVOID *lplpBuffer,PUINT puLen);
163 WINBOOL WINAPI VerQueryValueW(LPCVOID pBlock,LPCWSTR lpSubBlock,LPVOID *lplpBuffer,PUINT puLen);
164#endif
165#endif
166
167#ifdef __cplusplus
168}
169#endif
170#endif
Note: See TracBrowser for help on using the repository browser.