Fix compilation errors on FreeBSD.
[wine] / include / winver.h
1 /* Definitions for the VERsion infolibrary (VER.DLL)
2  * 
3  * Copyright 1996 Marcus Meissner
4  */
5
6 #ifndef __WINE_WINVER_H
7 #define __WINE_WINVER_H
8
9 #include "windef.h"
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif /* defined(__cplusplus) */
14
15 /* resource ids for different version infos */
16 #define VS_FILE_INFO            16
17 #define VS_VERSION_INFO         1
18 #define VS_USER_DEFINED         100
19
20 #define VS_FFI_SIGNATURE        0xfeef04bdL     /* FileInfo Magic */
21 #define VS_FFI_STRUCVERSION     0x00010000L     /* struc version 1.0 */
22 #define VS_FFI_FILEFLAGSMASK    0x0000003fL     /* valid flags */
23
24 /* VS_VERSION.dwFileFlags */
25 #define VS_FF_DEBUG             0x01L
26 #define VS_FF_PRERELEASE        0x02L
27 #define VS_FF_PATCHED           0x04L
28 #define VS_FF_PRIVATEBUILD      0x08L
29 #define VS_FF_INFOINFERRED      0x10L
30 #define VS_FF_SPECIALBUILD      0x20L
31
32 /* VS_VERSION.dwFileOS */
33
34 /* major os version */
35 #define VOS_UNKNOWN             0x00000000L
36 #define VOS_DOS                 0x00010000L
37 #define VOS_OS216               0x00020000L
38 #define VOS_OS232               0x00030000L
39 #define VOS_NT                  0x00040000L
40
41 /* minor os version */
42 #define VOS__BASE               0x00000000L
43 #define VOS__WINDOWS16          0x00000001L
44 #define VOS__PM16               0x00000002L
45 #define VOS__PM32               0x00000003L
46 #define VOS__WINDOWS32          0x00000004L
47
48 /* possible versions */
49 #define VOS_DOS_WINDOWS16       (VOS_DOS|VOS__WINDOWS16)
50 #define VOS_DOS_WINDOWS32       (VOS_DOS|VOS__WINDOWS32)
51 #define VOS_OS216_PM16          (VOS_OS216|VOS__PM16)
52 #define VOS_OS232_PM32          (VOS_OS232|VOS__PM32)
53 #define VOS_NT_WINDOWS32        (VOS_NT|VOS__WINDOWS32)
54
55 /* VS_VERSION.dwFileType */
56 #define VFT_UNKNOWN             0x00000000L
57 #define VFT_APP                 0x00000001L
58 #define VFT_DLL                 0x00000002L
59 #define VFT_DRV                 0x00000003L
60 #define VFT_FONT                0x00000004L
61 #define VFT_VXD                 0x00000005L
62 /* ??one type missing??         0x00000006L -Marcus */
63 #define VFT_STATIC_LIB          0x00000007L
64
65 /* VS_VERSION.dwFileSubtype for VFT_DRV */
66 #define VFT2_UNKNOWN            0x00000000L
67 #define VFT2_DRV_PRINTER        0x00000001L
68 #define VFT2_DRV_KEYBOARD       0x00000002L
69 #define VFT2_DRV_LANGUAGE       0x00000003L
70 #define VFT2_DRV_DISPLAY        0x00000004L
71 #define VFT2_DRV_MOUSE          0x00000005L
72 #define VFT2_DRV_NETWORK        0x00000006L
73 #define VFT2_DRV_SYSTEM         0x00000007L
74 #define VFT2_DRV_INSTALLABLE    0x00000008L
75 #define VFT2_DRV_SOUND          0x00000009L
76 #define VFT2_DRV_COMM           0x0000000aL
77 #define VFT2_DRV_INPUTMETHOD    0x0000000bL
78
79 /* VS_VERSION.dwFileSubtype for VFT_FONT */
80 #define VFT2_FONT_RASTER        0x00000001L
81 #define VFT2_FONT_VECTOR        0x00000002L
82 #define VFT2_FONT_TRUETYPE      0x00000003L
83
84 /* VerFindFile Flags */
85         /* input */
86 #define VFFF_ISSHAREDFILE       0x0001
87
88         /* output (returned) */
89 #define VFF_CURNEDEST           0x0001
90 #define VFF_FILEINUSE           0x0002
91 #define VFF_BUFFTOOSMALL        0x0004
92
93 /* VerInstallFile Flags */
94         /* input */
95 #define VIFF_FORCEINSTALL       0x0001
96 #define VIFF_DONTDELETEOLD      0x0002
97
98         /* output (return) */
99 #define VIF_TEMPFILE            0x00000001L
100 #define VIF_MISMATCH            0x00000002L
101 #define VIF_SRCOLD              0x00000004L
102 #define VIF_DIFFLANG            0x00000008L
103 #define VIF_DIFFCODEPG          0x00000010L
104 #define VIF_DIFFTYPE            0x00000020L
105 #define VIF_WRITEPROT           0x00000040L
106 #define VIF_FILEINUSE           0x00000080L
107 #define VIF_OUTOFSPACE          0x00000100L
108 #define VIF_ACCESSVIOLATION     0x00000200L
109 #define VIF_SHARINGVIOLATION    0x00000400L
110 #define VIF_CANNOTCREATE        0x00000800L
111 #define VIF_CANNOTDELETE        0x00001000L
112 #define VIF_CANNOTRENAME        0x00002000L
113 #define VIF_CANNOTDELETECUR     0x00004000L
114 #define VIF_OUTOFMEMORY         0x00008000L
115 #define VIF_CANNOTREADSRC       0x00010000L
116 #define VIF_CANNOTREADDST       0x00020000L
117 #define VIF_BUFFTOOSMALL        0x00040000L
118
119 typedef struct tagVS_FIXEDFILEINFO {
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
136 #ifndef RC_INVOKED
137
138 /* function prototypes */
139
140 DWORD       WINAPI VerFindFileA(UINT,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT*,LPSTR,UINT*);
141 DWORD       WINAPI VerFindFileW(UINT,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT*,LPWSTR,UINT*);
142 #define     VerFindFile WINELIB_NAME_AW(VerFindFile)
143 DWORD       WINAPI VerInstallFileA(UINT,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT*);
144 DWORD       WINAPI VerInstallFileW(UINT,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT*);
145 #define     VerInstallFile WINELIB_NAME_AW(VerInstallFile)
146 DWORD       WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
147 DWORD       WINAPI VerLanguageNameW(UINT,LPWSTR,UINT);
148 #define     VerLanguageName WINELIB_NAME_AW(VerLanguageName)
149 DWORD       WINAPI VerQueryValueA(LPVOID,LPCSTR,LPVOID*,UINT*);
150 DWORD       WINAPI VerQueryValueW(LPVOID,LPCWSTR,LPVOID*,UINT*);
151 #define     VerQueryValue WINELIB_NAME_AW(VerQueryValue)
152 DWORD       WINAPI GetFileVersionInfoSizeA(LPCSTR,LPDWORD);
153 DWORD       WINAPI GetFileVersionInfoSizeW(LPCWSTR,LPDWORD);
154 #define     GetFileVersionInfoSize WINELIB_NAME_AW(GetFileVersionInfoSize)
155 BOOL        WINAPI GetFileVersionInfoA(LPCSTR,DWORD,DWORD,LPVOID);
156 BOOL        WINAPI GetFileVersionInfoW(LPCWSTR,DWORD,DWORD,LPVOID);
157 #define     GetFileVersionInfo WINELIB_NAME_AW(GetFileVersionInfo)
158
159 /* 20 GETFILEVERSIONINFORAW */
160
161 #endif /* RC_INVOKED */
162
163 #ifdef __cplusplus
164 } /* extern "C" */
165 #endif /* defined(__cplusplus) */
166
167 #endif /* __WINE_WINVER_H */