source: branches/swt/include/versionos2.h@ 22145

Last change on this file since 22145 was 22118, checked in by rousseau, 10 years ago

Added the stub sources for 'gdiplus' [gdiplus]

Stuff for the 'gdiplus' module was cloned from 'gdi32'.
For the implementation, the main source will be the Wine Git Repository.

We start at the initial wine-commit for 'gdiplus' and climb up the
wine-repo, integrating into Odin.

Commit: bed761c9e72febb3b2d681fd4e540e149af9e71a
Wine git-repo: git://source.winehq.org/git/wine.git

File size: 3.2 KB
Line 
1/* $Id: versionos2.h,v 1.28 2004-05-24 08:52:51 sandervl Exp $ */
2
3#ifndef __VERSIONOS2__H__
4#define __VERSIONOS2__H__
5
6/*PLF
7 *
8 * PE2LX_VERSION is an internal version number used to verify that the
9 * dll's are a matched set. It doesn't have to be related at all to the
10 * "version number of the product" we advertise to users.
11 *
12 * Each time a structural change in pe2lx.exe causes previous dll's to
13 * be incompatible (for example, when Sander removed the "OS2" prefix
14 * from all exported names), this constant should be incremented.
15 *
16 * The value is currently stored as a four byte EA (so the range is that
17 * of an unsigned long).
18 *
19 *
20 */
21#define PE2LX_VERSION 8
22
23
24#ifndef SYSTEM
25#define SYSTEM _System
26#endif
27
28//in kernel32.dll/wprocess.cpp, used by version.dll
29BOOL SYSTEM GetVersionStruct(char *modname, char *verstruct, ULONG bufLength);
30ULONG SYSTEM GetVersionSize(char *modname);
31
32//Used by GetVersion and GetProcessVersion
33#define WIN32OS2_VERSION (4)
34
35#define ODINNT_VERSION 0x05650004 //returned by GetVersion
36
37//Used by GetVersionEx:
38#define ODINNT_MAJOR_VERSION 4
39#define ODINNT_MINOR_VERSION 0
40#define ODINNT_BUILD_NR 1381
41#define ODINNT_CSDVERSION "Service Pack 6"
42#define ODINNT_CSDVERSION_W (LPWSTR)L"Service Pack 6"
43#define ODINNT_SOFTWARE_TYPE "SYSTEM"
44#define ODINNT_OSTYPE_UNI "Uniprocessor Free"
45#define ODINNT_OSTYPE_SMP "SMPprocessor Free" //??
46
47//image version (header)
48#define COMCTL32_MAJORIMAGE_VERSION 5
49#define COMCTL32_MINORIMAGE_VERSION 0
50#define COMDLG32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
51#define COMDLG32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
52#define DDRAW_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
53#define DDRAW_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
54#define GDI32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
55#define GDI32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
56#define GDIPLUS_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
57#define GDIPLUS_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
58#define SHELL32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
59#define SHELL32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
60#define USER32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
61#define USER32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
62#define IMM32_MAJORIMAGE_VERSION ODINNT_MAJOR_VERSION
63#define IMM32_MINORIMAGE_VERSION ODINNT_MINOR_VERSION
64
65
66//profile key in odin.ini for windows version
67#define PROFILE_WINVERSION_SECTION "WinVersion"
68#define PROFILE_WINVERSION_KEY "Version"
69#define PROFILE_WINVERSION_WIN98 "Win98"
70#define PROFILE_WINVERSION_WINME "WinME"
71#define PROFILE_WINVERSION_NT40 "NT40"
72#define PROFILE_WINVERSION_WIN2000 "Win2000"
73#define PROFILE_WINVERSION_WINXP "WinXP"
74#define PROFILE_WINVERSION_WINXPSP3 "WinXPSP3"
75
76#define WINVERSION_WIN98 0
77#define WINVERSION_WINME 1
78#define WINVERSION_NT40 2
79#define WINVERSION_WIN2000 3 // default
80#define WINVERSION_WINXP 4
81#define WINVERSION_WINXPSP3 5
82#define WINVERSION_MAX 6
83
84//Override windows version reported by Odin
85#ifdef WIN32API
86void WIN32API OdinSetVersion(ULONG version);
87#endif
88
89
90#define VERSION_IS_WIN2000_OR_HIGHER() (LOBYTE(GetVersion()) >= 5)
91
92#endif
93
94
95
96
97
98
99
100
101
Note: See TracBrowser for help on using the repository browser.