Fixed compilation.
[wine/multimedia.git] / include / ver.h
blobe09ec48a8722a04582155e9bee474a366248ab36
1 /* Definitions for the VERsion infolibrary (VER.DLL)
2 *
3 * Copyright 1996 Marcus Meissner
4 */
5 #ifndef __WINE_VER_H
6 #define __WINE_VER_H
8 #include "wintypes.h"
10 /* resource ids for different version infos */
11 /* These are internal resources for win16, but simple numbers in win32 */
12 /* All win32 defines should be moved to winver.h */
13 #define VS_FILE_INFO16 MAKEINTRESOURCE16(16)
14 #define VS_VERSION_INFO16 MAKEINTRESOURCE16(1)
15 #define VS_USER_INFO16 MAKEINTRESOURCE16(100)
17 #define VS_FILE_INFO 16
18 #define VS_VERSION_INFO 1
19 #define VS_USER_INFO 100
21 #define VS_FFI_SIGNATURE 0xfeef04bdL /* FileInfo Magic */
22 #define VS_FFI_STRUCVERSION 0x00010000L /* struc version 1.0 */
23 #define VS_FFI_FILEFLAGSMASK 0x0000003fL /* valid flags */
25 /* VS_VERSION.dwFileFlags */
26 #define VS_FF_DEBUG 0x01L
27 #define VS_FF_PRERELEASE 0x02L
28 #define VS_FF_PATCHED 0x04L
29 #define VS_FF_PRIVATEBUILD 0x08L
30 #define VS_FF_INFOINFERRED 0x10L
31 #define VS_FF_SPECIALBUILD 0x20L
33 /* VS_VERSION.dwFileOS */
35 /* major os version */
36 #define VOS_UNKNOWN 0x00000000L
37 #define VOS_DOS 0x00010000L
38 #define VOS_OS216 0x00020000L
39 #define VOS_OS232 0x00030000L
40 #define VOS_NT 0x00040000L
42 /* minor os version */
43 #define VOS__BASE 0x00000000L
44 #define VOS__WINDOWS16 0x00000001L
45 #define VOS__PM16 0x00000002L
46 #define VOS__PM32 0x00000003L
47 #define VOS__WINDOWS32 0x00000004L
49 /* possible versions */
50 #define VOS_DOS_WINDOWS16 (VOS_DOS|VOS__WINDOWS16)
51 #define VOS_DOS_WINDOWS32 (VOS_DOS|VOS__WINDOWS32)
52 #define VOS_OS216_PM16 (VOS_OS216|VOS__PM16)
53 #define VOS_OS232_PM32 (VOS_OS232|VOS__PM32)
54 #define VOS_NT_WINDOWS32 (VOS_NT|VOS__WINDOWS32)
56 /* VS_VERSION.dwFileType */
57 #define VFT_UNKNOWN 0x00000000L
58 #define VFT_APP 0x00000001L
59 #define VFT_DLL 0x00000002L
60 #define VFT_DRV 0x00000003L
61 #define VFT_FONT 0x00000004L
62 #define VFT_VXD 0x00000005L
63 /* ??one type missing?? 0x00000006L -Marcus */
64 #define VFT_STATIC_LIB 0x00000007L
66 /* VS_VERSION.dwFileSubtype for VFT_DRV */
67 #define VFT2_UNKNOWN 0x00000000L
68 #define VFT2_DRV_PRINTER 0x00000001L
69 #define VFT2_DRV_KEYBOARD 0x00000002L
70 #define VFT2_DRV_LANGUAGE 0x00000003L
71 #define VFT2_DRV_DISPLAY 0x00000004L
72 #define VFT2_DRV_MOUSE 0x00000005L
73 #define VFT2_DRV_NETWORK 0x00000006L
74 #define VFT2_DRV_SYSTEM 0x00000007L
75 #define VFT2_DRV_INSTALLABLE 0x00000008L
76 #define VFT2_DRV_SOUND 0x00000009L
77 #define VFT2_DRV_COMM 0x0000000aL
78 #define VFT2_DRV_INPUTMETHOD 0x0000000bL
80 /* VS_VERSION.dwFileSubtype for VFT_FONT */
81 #define VFT2_FONT_RASTER 0x00000001L
82 #define VFT2_FONT_VECTOR 0x00000002L
83 #define VFT2_FONT_TRUETYPE 0x00000003L
85 /* VerFindFile Flags */
86 /* input */
87 #define VFFF_ISSHAREDFILE 0x0001
89 /* output (returned) */
90 #define VFF_CURNEDEST 0x0001
91 #define VFF_FILEINUSE 0x0002
92 #define VFF_BUFFTOOSMALL 0x0004
94 /* VerInstallFile Flags */
95 /* input */
96 #define VIFF_FORCEINSTALL 0x0001
97 #define VIFF_DONTDELETEOLD 0x0002
99 /* output (return) */
100 #define VIF_TEMPFILE 0x00000001L
101 #define VIF_MISMATCH 0x00000002L
102 #define VIF_SRCOLD 0x00000004L
103 #define VIF_DIFFLANG 0x00000008L
104 #define VIF_DIFFCODEPG 0x00000010L
105 #define VIF_DIFFTYPE 0x00000020L
106 #define VIF_WRITEPROT 0x00000040L
107 #define VIF_FILEINUSE 0x00000080L
108 #define VIF_OUTOFSPACE 0x00000100L
109 #define VIF_ACCESSVIOLATION 0x00000200L
110 #define VIF_SHARINGVIOLATION 0x00000400L
111 #define VIF_CANNOTCREATE 0x00000800L
112 #define VIF_CANNOTDELETE 0x00001000L
113 #define VIF_CANNOTRENAME 0x00002000L
114 #define VIF_CANNOTDELETECUR 0x00004000L
115 #define VIF_OUTOFMEMORY 0x00008000L
116 #define VIF_CANNOTREADSRC 0x00010000L
117 #define VIF_CANNOTREADDST 0x00020000L
118 #define VIF_BUFFTOOSMALL 0x00040000L
120 typedef struct tagVS_FIXEDFILEINFO {
121 DWORD dwSignature;
122 DWORD dwStrucVersion;
123 DWORD dwFileVersionMS;
124 DWORD dwFileVersionLS;
125 DWORD dwProductVersionMS;
126 DWORD dwProductVersionLS;
127 DWORD dwFileFlagsMask;
128 DWORD dwFileFlags;
129 DWORD dwFileOS;
130 DWORD dwFileType;
131 DWORD dwFileSubtype;
132 DWORD dwFileDateMS;
133 DWORD dwFileDateLS;
134 } VS_FIXEDFILEINFO;
137 /* 20 GETFILEVERSIONINFORAW */
139 #ifdef __WINE__
141 DWORD WINAPI GetFileResourceSize( LPCSTR lpszFileName,
142 LPCSTR lpszResType, LPCSTR lpszResId,
143 LPDWORD lpdwFileOffset );
144 DWORD WINAPI GetFileResource( LPCSTR lpszFileName,
145 LPCSTR lpszResType, LPCSTR lpszResId,
146 DWORD dwFileOffset,
147 DWORD dwResLen, LPVOID lpvData );
149 #endif /* __WINE__ */
151 #endif /* __WINE_VER_H */