Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0f4e9ffc
Commit
0f4e9ffc
authored
May 30, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlGetProductInfo.
parent
68aa42a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
version.c
dlls/ntdll/version.c
+15
-3
winnt.h
include/winnt.h
+4
-1
No files found.
dlls/ntdll/version.c
View file @
0f4e9ffc
...
...
@@ -544,7 +544,7 @@ done:
}
/***********************************************************************
*
GetProductInfo
(NTDLL.@)
*
RtlGetProductInfo
(NTDLL.@)
*
* Gives info about the current Windows product type, in a format compatible
* with the given Windows version
...
...
@@ -554,10 +554,22 @@ done:
BOOLEAN
WINAPI
RtlGetProductInfo
(
DWORD
dwOSMajorVersion
,
DWORD
dwOSMinorVersion
,
DWORD
dwSpMajorVersion
,
DWORD
dwSpMinorVersion
,
PDWORD
pdwReturnedProductType
)
{
FIXME
(
"(%d,%d,%d,%d,%p): stub
\n
"
,
dwOSMajorVersion
,
dwOSMinorVersion
,
TRACE
(
"(%d, %d, %d, %d, %p)
\n
"
,
dwOSMajorVersion
,
dwOSMinorVersion
,
dwSpMajorVersion
,
dwSpMinorVersion
,
pdwReturnedProductType
);
*
pdwReturnedProductType
=
PRODUCT_ULTIMATE_N
;
if
(
!
pdwReturnedProductType
)
return
FALSE
;
if
(
dwOSMajorVersion
<
6
)
{
*
pdwReturnedProductType
=
PRODUCT_UNDEFINED
;
return
FALSE
;
}
if
(
current_version
->
wProductType
==
VER_NT_WORKSTATION
)
*
pdwReturnedProductType
=
PRODUCT_ULTIMATE_N
;
else
*
pdwReturnedProductType
=
PRODUCT_STANDARD_SERVER
;
return
TRUE
;
}
...
...
include/winnt.h
View file @
0f4e9ffc
...
...
@@ -1976,7 +1976,7 @@ NTSYSAPI void WINAPI RtlCaptureContext(CONTEXT*);
#define PRODUCT_DATACENTER_SERVER 0x00000008
#define PRODUCT_DATACENTER_SERVER_CORE 0x0000000C
#define PRODUCT_DATACENTER_SERVER_CORE_V 0x00000027
#define PRODUCT_
SERVER_V 0x00000025
#define PRODUCT_
EMBEDDED 0x00000041
#define PRODUCT_ENTERPRISE 0x00000004
#define PRODUCT_ENTERPRISE_N 0x0000001B
#define PRODUCT_ENTERPRISE_SERVER 0x0000000A
...
...
@@ -1992,8 +1992,11 @@ NTSYSAPI void WINAPI RtlCaptureContext(CONTEXT*);
#define PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT 0x0000001E
#define PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING 0x00000020
#define PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY 0x0000001F
#define PRODUCT_PROFESSIONAL 0x00000030
#define PRODUCT_PROFESSIONAL_N 0x00000031
#define PRODUCT_SERVER_FOR_SMALLBUSINESS 0x00000018
#define PRODUCT_SERVER_FOR_SMALLBUSINESS_V 0x00000023
#define PRODUCT_SERVER_V 0x00000025
#define PRODUCT_SMALLBUSINESS_SERVER 0x00000009
#define PRODUCT_STANDARD_SERVER 0x00000007
#define PRODUCT_STANDARD_SERVER_CORE 0x0000000D
...
...
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