VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/winver.h@ 33282

Last change on this file since 33282 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 6.3 KB
Line 
1/* Definitions for the VERsion infolibrary (VER.DLL)
2 *
3 * Copyright 1996 Marcus Meissner
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20/*
21 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
22 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
23 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
24 * a choice of LGPL license versions is made available with the language indicating
25 * that LGPLv2 or any later version may be used, or where a choice of which version
26 * of the LGPL is applied is otherwise unspecified.
27 */
28
29#ifndef __WINE_WINVER_H
30#define __WINE_WINVER_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif /* defined(__cplusplus) */
35
36/* resource ids for different version infos */
37#define VS_FILE_INFO 16
38#define VS_VERSION_INFO 1
39#define VS_USER_DEFINED 100
40
41#define VS_FFI_SIGNATURE 0xfeef04bdL /* FileInfo Magic */
42#define VS_FFI_STRUCVERSION 0x00010000L /* struc version 1.0 */
43#define VS_FFI_FILEFLAGSMASK 0x0000003fL /* valid flags */
44
45/* VS_VERSION.dwFileFlags */
46#define VS_FF_DEBUG 0x01L
47#define VS_FF_PRERELEASE 0x02L
48#define VS_FF_PATCHED 0x04L
49#define VS_FF_PRIVATEBUILD 0x08L
50#define VS_FF_INFOINFERRED 0x10L
51#define VS_FF_SPECIALBUILD 0x20L
52
53/* VS_VERSION.dwFileOS */
54
55/* major os version */
56#define VOS_UNKNOWN 0x00000000L
57#define VOS_DOS 0x00010000L
58#define VOS_OS216 0x00020000L
59#define VOS_OS232 0x00030000L
60#define VOS_NT 0x00040000L
61
62/* minor os version */
63#define VOS__BASE 0x00000000L
64#define VOS__WINDOWS16 0x00000001L
65#define VOS__PM16 0x00000002L
66#define VOS__PM32 0x00000003L
67#define VOS__WINDOWS32 0x00000004L
68
69/* possible versions */
70#define VOS_DOS_WINDOWS16 (VOS_DOS|VOS__WINDOWS16)
71#define VOS_DOS_WINDOWS32 (VOS_DOS|VOS__WINDOWS32)
72#define VOS_OS216_PM16 (VOS_OS216|VOS__PM16)
73#define VOS_OS232_PM32 (VOS_OS232|VOS__PM32)
74#define VOS_NT_WINDOWS32 (VOS_NT|VOS__WINDOWS32)
75
76/* VS_VERSION.dwFileType */
77#define VFT_UNKNOWN 0x00000000L
78#define VFT_APP 0x00000001L
79#define VFT_DLL 0x00000002L
80#define VFT_DRV 0x00000003L
81#define VFT_FONT 0x00000004L
82#define VFT_VXD 0x00000005L
83/* ??one type missing?? 0x00000006L -Marcus */
84#define VFT_STATIC_LIB 0x00000007L
85
86/* VS_VERSION.dwFileSubtype for VFT_DRV */
87#define VFT2_UNKNOWN 0x00000000L
88#define VFT2_DRV_PRINTER 0x00000001L
89#define VFT2_DRV_KEYBOARD 0x00000002L
90#define VFT2_DRV_LANGUAGE 0x00000003L
91#define VFT2_DRV_DISPLAY 0x00000004L
92#define VFT2_DRV_MOUSE 0x00000005L
93#define VFT2_DRV_NETWORK 0x00000006L
94#define VFT2_DRV_SYSTEM 0x00000007L
95#define VFT2_DRV_INSTALLABLE 0x00000008L
96#define VFT2_DRV_SOUND 0x00000009L
97#define VFT2_DRV_COMM 0x0000000aL
98#define VFT2_DRV_INPUTMETHOD 0x0000000bL
99#define VFT2_DRV_VERSIONED_PRINTER 0x0000000cL
100
101/* VS_VERSION.dwFileSubtype for VFT_FONT */
102#define VFT2_FONT_RASTER 0x00000001L
103#define VFT2_FONT_VECTOR 0x00000002L
104#define VFT2_FONT_TRUETYPE 0x00000003L
105
106/* VerFindFile Flags */
107 /* input */
108#define VFFF_ISSHAREDFILE 0x0001
109
110 /* output (returned) */
111#define VFF_CURNEDEST 0x0001
112#define VFF_FILEINUSE 0x0002
113#define VFF_BUFFTOOSMALL 0x0004
114
115/* VerInstallFile Flags */
116 /* input */
117#define VIFF_FORCEINSTALL 0x0001
118#define VIFF_DONTDELETEOLD 0x0002
119
120 /* output (return) */
121#define VIF_TEMPFILE 0x00000001L
122#define VIF_MISMATCH 0x00000002L
123#define VIF_SRCOLD 0x00000004L
124#define VIF_DIFFLANG 0x00000008L
125#define VIF_DIFFCODEPG 0x00000010L
126#define VIF_DIFFTYPE 0x00000020L
127#define VIF_WRITEPROT 0x00000040L
128#define VIF_FILEINUSE 0x00000080L
129#define VIF_OUTOFSPACE 0x00000100L
130#define VIF_ACCESSVIOLATION 0x00000200L
131#define VIF_SHARINGVIOLATION 0x00000400L
132#define VIF_CANNOTCREATE 0x00000800L
133#define VIF_CANNOTDELETE 0x00001000L
134#define VIF_CANNOTRENAME 0x00002000L
135#define VIF_CANNOTDELETECUR 0x00004000L
136#define VIF_OUTOFMEMORY 0x00008000L
137#define VIF_CANNOTREADSRC 0x00010000L
138#define VIF_CANNOTREADDST 0x00020000L
139#define VIF_BUFFTOOSMALL 0x00040000L
140
141typedef struct tagVS_FIXEDFILEINFO {
142 DWORD dwSignature;
143 DWORD dwStrucVersion;
144 DWORD dwFileVersionMS;
145 DWORD dwFileVersionLS;
146 DWORD dwProductVersionMS;
147 DWORD dwProductVersionLS;
148 DWORD dwFileFlagsMask;
149 DWORD dwFileFlags;
150 DWORD dwFileOS;
151 DWORD dwFileType;
152 DWORD dwFileSubtype;
153 DWORD dwFileDateMS;
154 DWORD dwFileDateLS;
155} VS_FIXEDFILEINFO;
156
157
158#ifndef RC_INVOKED
159
160/* function prototypes */
161
162DWORD WINAPI VerFindFileA(DWORD,LPCSTR,LPCSTR,LPCSTR,LPSTR,PUINT,LPSTR,PUINT);
163DWORD WINAPI VerFindFileW(DWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,PUINT,LPWSTR,PUINT);
164#define VerFindFile WINELIB_NAME_AW(VerFindFile)
165DWORD WINAPI VerInstallFileA(DWORD,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,PUINT);
166DWORD WINAPI VerInstallFileW(DWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,PUINT);
167#define VerInstallFile WINELIB_NAME_AW(VerInstallFile)
168DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
169DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
170#define VerLanguageName WINELIB_NAME_AW(VerLanguageName)
171BOOL WINAPI VerQueryValueA(LPCVOID,LPCSTR,LPVOID*,PUINT);
172BOOL WINAPI VerQueryValueW(LPCVOID,LPCWSTR,LPVOID*,PUINT);
173#define VerQueryValue WINELIB_NAME_AW(VerQueryValue)
174DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR,LPDWORD);
175DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR,LPDWORD);
176#define GetFileVersionInfoSize WINELIB_NAME_AW(GetFileVersionInfoSize)
177BOOL WINAPI GetFileVersionInfoA(LPCSTR,DWORD,DWORD,LPVOID);
178BOOL WINAPI GetFileVersionInfoW(LPCWSTR,DWORD,DWORD,LPVOID);
179#define GetFileVersionInfo WINELIB_NAME_AW(GetFileVersionInfo)
180
181/* 20 GETFILEVERSIONINFORAW */
182
183#endif /* RC_INVOKED */
184
185#ifdef __cplusplus
186} /* extern "C" */
187#endif /* defined(__cplusplus) */
188
189#endif /* __WINE_WINVER_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette