Alexander Nicolaysen Sørnes : ntdll: Add RtlGetProductInfo stub.

Alexandre Julliard julliard at winehq.org
Mon Oct 26 10:08:34 CDT 2009


Module: wine
Branch: master
Commit: ee0b76632adef21ff637d900a057613985fdf4c4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ee0b76632adef21ff637d900a057613985fdf4c4

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Oct 25 15:09:37 2009 +0100

ntdll: Add RtlGetProductInfo stub.

---

 dlls/ntdll/ntdll.spec |    1 +
 dlls/ntdll/version.c  |   18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 70647d2..00b29db 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -636,6 +636,7 @@
 @ stdcall RtlGetNtProductType(ptr)
 @ stdcall RtlGetNtVersionNumbers(ptr ptr ptr)
 @ stdcall RtlGetOwnerSecurityDescriptor(ptr ptr ptr)
+@ stdcall RtlGetProductInfo(long long long long ptr)
 @ stdcall RtlGetProcessHeaps(long ptr)
 @ stdcall RtlGetSaclSecurityDescriptor(ptr ptr ptr ptr)
 # @ stub RtlGetSecurityDescriptorRMControl
diff --git a/dlls/ntdll/version.c b/dlls/ntdll/version.c
index 24531aa..c1f7cb1 100644
--- a/dlls/ntdll/version.c
+++ b/dlls/ntdll/version.c
@@ -527,6 +527,24 @@ done:
            current_version->wProductType );
 }
 
+/***********************************************************************
+ *           GetProductInfo       (NTDLL.@)
+ *
+ * Gives info about the current Windows product type, in a format compatible
+ * with the given Windows version
+ *
+ * Returns TRUE if the input is valid, FALSE otherwise
+ */
+BOOLEAN WINAPI RtlGetProductInfo(DWORD dwOSMajorVersion, DWORD dwOSMinorVersion, DWORD dwSpMajorVersion,
+                                 DWORD dwSpMinorVersion, PDWORD pdwReturnedProductType)
+{
+    FIXME("(%d,%d,%d,%d,%p): stub\n", dwOSMajorVersion, dwOSMinorVersion,
+          dwSpMajorVersion, dwSpMinorVersion, pdwReturnedProductType);
+
+    *pdwReturnedProductType = PRODUCT_ULTIMATE_N;
+
+    return TRUE;
+}
 
 /***********************************************************************
  *         RtlGetVersion   (NTDLL.@)




More information about the wine-cvs mailing list