user32: Implement InternalGetWindowIcon().
[wine.git] / include / verrsrc.h
blobfa5c26c94fd928d6467fee73d0c049bbc3c91354
1 /* Definitions for the VERsion info library (VER.DLL)
3 * Copyright 1996 Marcus Meissner
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.
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.
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
20 #ifndef __WINE_VERRSRC_H
21 #define __WINE_VERRSRC_H
23 /* Macro to deal with LP64 <=> LLP64 differences in numeric constants with 'l' modifier */
24 #ifndef __MSABI_LONG
25 # if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__)
26 # define __MSABI_LONG(x) x ## l
27 # else
28 # define __MSABI_LONG(x) x
29 # endif
30 #endif
32 /* resource ids for different version infos */
33 #define VS_FILE_INFO RT_VERSION
34 #define VS_VERSION_INFO 1
35 #define VS_USER_DEFINED 100
37 #define VS_FFI_SIGNATURE __MSABI_LONG(0xfeef04bd) /* FileInfo Magic */
38 #define VS_FFI_STRUCVERSION __MSABI_LONG(0x00010000) /* struc version 1.0 */
39 #define VS_FFI_FILEFLAGSMASK __MSABI_LONG(0x0000003f) /* valid flags */
41 /* VS_VERSION.dwFileFlags */
42 #define VS_FF_DEBUG __MSABI_LONG(0x01)
43 #define VS_FF_PRERELEASE __MSABI_LONG(0x02)
44 #define VS_FF_PATCHED __MSABI_LONG(0x04)
45 #define VS_FF_PRIVATEBUILD __MSABI_LONG(0x08)
46 #define VS_FF_INFOINFERRED __MSABI_LONG(0x10)
47 #define VS_FF_SPECIALBUILD __MSABI_LONG(0x20)
49 /* VS_VERSION.dwFileOS */
51 /* major os version */
52 #define VOS_UNKNOWN __MSABI_LONG(0x00000000)
53 #define VOS_DOS __MSABI_LONG(0x00010000)
54 #define VOS_OS216 __MSABI_LONG(0x00020000)
55 #define VOS_OS232 __MSABI_LONG(0x00030000)
56 #define VOS_NT __MSABI_LONG(0x00040000)
57 #define VOS_WINCE __MSABI_LONG(0x00050000)
59 /* minor os version */
60 #define VOS__BASE __MSABI_LONG(0x00000000)
61 #define VOS__WINDOWS16 __MSABI_LONG(0x00000001)
62 #define VOS__PM16 __MSABI_LONG(0x00000002)
63 #define VOS__PM32 __MSABI_LONG(0x00000003)
64 #define VOS__WINDOWS32 __MSABI_LONG(0x00000004)
66 /* possible versions */
67 #define VOS_DOS_WINDOWS16 (VOS_DOS|VOS__WINDOWS16)
68 #define VOS_DOS_WINDOWS32 (VOS_DOS|VOS__WINDOWS32)
69 #define VOS_OS216_PM16 (VOS_OS216|VOS__PM16)
70 #define VOS_OS232_PM32 (VOS_OS232|VOS__PM32)
71 #define VOS_NT_WINDOWS32 (VOS_NT|VOS__WINDOWS32)
73 /* VS_VERSION.dwFileType */
74 #define VFT_UNKNOWN __MSABI_LONG(0x00000000)
75 #define VFT_APP __MSABI_LONG(0x00000001)
76 #define VFT_DLL __MSABI_LONG(0x00000002)
77 #define VFT_DRV __MSABI_LONG(0x00000003)
78 #define VFT_FONT __MSABI_LONG(0x00000004)
79 #define VFT_VXD __MSABI_LONG(0x00000005)
80 /* ??one type missing?? __MSABI_LONG(0x00000006) -Marcus */
81 #define VFT_STATIC_LIB __MSABI_LONG(0x00000007)
83 /* VS_VERSION.dwFileSubtype for VFT_DRV */
84 #define VFT2_UNKNOWN __MSABI_LONG(0x00000000)
85 #define VFT2_DRV_PRINTER __MSABI_LONG(0x00000001)
86 #define VFT2_DRV_KEYBOARD __MSABI_LONG(0x00000002)
87 #define VFT2_DRV_LANGUAGE __MSABI_LONG(0x00000003)
88 #define VFT2_DRV_DISPLAY __MSABI_LONG(0x00000004)
89 #define VFT2_DRV_MOUSE __MSABI_LONG(0x00000005)
90 #define VFT2_DRV_NETWORK __MSABI_LONG(0x00000006)
91 #define VFT2_DRV_SYSTEM __MSABI_LONG(0x00000007)
92 #define VFT2_DRV_INSTALLABLE __MSABI_LONG(0x00000008)
93 #define VFT2_DRV_SOUND __MSABI_LONG(0x00000009)
94 #define VFT2_DRV_COMM __MSABI_LONG(0x0000000a)
95 #define VFT2_DRV_INPUTMETHOD __MSABI_LONG(0x0000000b)
96 #define VFT2_DRV_VERSIONED_PRINTER __MSABI_LONG(0x0000000c)
98 /* VS_VERSION.dwFileSubtype for VFT_FONT */
99 #define VFT2_FONT_RASTER __MSABI_LONG(0x00000001)
100 #define VFT2_FONT_VECTOR __MSABI_LONG(0x00000002)
101 #define VFT2_FONT_TRUETYPE __MSABI_LONG(0x00000003)
103 /* VerFindFile Flags */
104 /* input */
105 #define VFFF_ISSHAREDFILE 0x0001
107 /* output (returned) */
108 #define VFF_CURNEDEST 0x0001
109 #define VFF_FILEINUSE 0x0002
110 #define VFF_BUFFTOOSMALL 0x0004
112 /* VerInstallFile Flags */
113 /* input */
114 #define VIFF_FORCEINSTALL 0x0001
115 #define VIFF_DONTDELETEOLD 0x0002
117 /* output (return) */
118 #define VIF_TEMPFILE __MSABI_LONG(0x00000001)
119 #define VIF_MISMATCH __MSABI_LONG(0x00000002)
120 #define VIF_SRCOLD __MSABI_LONG(0x00000004)
121 #define VIF_DIFFLANG __MSABI_LONG(0x00000008)
122 #define VIF_DIFFCODEPG __MSABI_LONG(0x00000010)
123 #define VIF_DIFFTYPE __MSABI_LONG(0x00000020)
124 #define VIF_WRITEPROT __MSABI_LONG(0x00000040)
125 #define VIF_FILEINUSE __MSABI_LONG(0x00000080)
126 #define VIF_OUTOFSPACE __MSABI_LONG(0x00000100)
127 #define VIF_ACCESSVIOLATION __MSABI_LONG(0x00000200)
128 #define VIF_SHARINGVIOLATION __MSABI_LONG(0x00000400)
129 #define VIF_CANNOTCREATE __MSABI_LONG(0x00000800)
130 #define VIF_CANNOTDELETE __MSABI_LONG(0x00001000)
131 #define VIF_CANNOTRENAME __MSABI_LONG(0x00002000)
132 #define VIF_CANNOTDELETECUR __MSABI_LONG(0x00004000)
133 #define VIF_OUTOFMEMORY __MSABI_LONG(0x00008000)
134 #define VIF_CANNOTREADSRC __MSABI_LONG(0x00010000)
135 #define VIF_CANNOTREADDST __MSABI_LONG(0x00020000)
136 #define VIF_BUFFTOOSMALL __MSABI_LONG(0x00040000)
137 #define VIF_CANNOTLOADLZ32 __MSABI_LONG(0x00080000)
138 #define VIF_CANNOTLOADCABINET __MSABI_LONG(0x00100000)
141 #ifndef RC_INVOKED
143 #ifdef __cplusplus
144 extern "C" {
145 #endif /* defined(__cplusplus) */
147 #define FILE_VER_GET_LOCALISED 0x01
148 #define FILE_VER_GET_NEUTRAL 0x02
149 #define FILE_VER_GET_PREFETCHED 0x04
151 typedef struct tagVS_FIXEDFILEINFO {
152 DWORD dwSignature;
153 DWORD dwStrucVersion;
154 DWORD dwFileVersionMS;
155 DWORD dwFileVersionLS;
156 DWORD dwProductVersionMS;
157 DWORD dwProductVersionLS;
158 DWORD dwFileFlagsMask;
159 DWORD dwFileFlags;
160 DWORD dwFileOS;
161 DWORD dwFileType;
162 DWORD dwFileSubtype;
163 DWORD dwFileDateMS;
164 DWORD dwFileDateLS;
165 } VS_FIXEDFILEINFO;
167 #ifdef __cplusplus
168 } /* extern "C" */
169 #endif /* defined(__cplusplus) */
171 #endif /* RC_INVOKED */
173 #endif /* __WINE_VERRSRC_H */