Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c34ca48b
Commit
c34ca48b
authored
Nov 20, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Add product information to the output for Vista and higher.
parent
b0cfbe81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
main.c
programs/winetest/main.c
+10
-0
No files found.
programs/winetest/main.c
View file @
c34ca48b
...
...
@@ -209,6 +209,7 @@ static void print_version (void)
const
char
*
(
CDECL
*
wine_get_build_id
)(
void
);
void
(
CDECL
*
wine_get_host_version
)(
const
char
**
sysname
,
const
char
**
release
);
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
hProcess
,
PBOOL
Wow64Process
);
BOOL
(
WINAPI
*
pGetProductInfo
)(
DWORD
,
DWORD
,
DWORD
,
DWORD
,
DWORD
*
);
ver
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFOEX
);
if
(
!
(
ext
=
GetVersionEx
((
OSVERSIONINFO
*
)
&
ver
)))
...
...
@@ -247,6 +248,15 @@ static void print_version (void)
" wSuiteMask=%d
\n
wProductType=%d
\n
wReserved=%d
\n
"
,
ver
.
wServicePackMajor
,
ver
.
wServicePackMinor
,
ver
.
wSuiteMask
,
ver
.
wProductType
,
ver
.
wReserved
);
pGetProductInfo
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"GetProductInfo"
);
if
(
pGetProductInfo
&&
!
running_under_wine
())
{
DWORD
prodtype
=
0
;
pGetProductInfo
(
ver
.
dwMajorVersion
,
ver
.
dwMinorVersion
,
ver
.
wServicePackMajor
,
ver
.
wServicePackMinor
,
&
prodtype
);
xprintf
(
" dwProductInfo=%u
\n
"
,
prodtype
);
}
}
static
inline
int
is_dot_dir
(
const
char
*
x
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment