[PATCH 4/4] Add product information to the output for Vista and higher
Paul Vriens
Paul.Vriens.Wine at gmail.com
Fri Nov 20 03:48:17 CST 2009
---
programs/winetest/main.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index ee092e5..e254dd4 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -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=%d\n", prodtype);
+ }
}
static inline int is_dot_dir(const char* x)
--
1.6.2.5
--------------070405020908050806030600--
More information about the wine-patches
mailing list