[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: [PATCH 02/10] explorerframe: Implement DllGetVersion
From: David Hedberg <david.hedberg () gmail ! com>
Date: 2010-07-31 18:02:46
Message-ID: 1280599374-7174-2-git-send-email-david.hedberg () gmail ! com
[Download RAW message or body]
---
dlls/explorerframe/explorerframe.spec | 2 +-
dlls/explorerframe/explorerframe_main.c | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/dlls/explorerframe/explorerframe.spec b/dlls/explorerframe/explorerframe.spec
index 40259d9..b93bb34 100644
--- a/dlls/explorerframe/explorerframe.spec
+++ b/dlls/explorerframe/explorerframe.spec
@@ -5,4 +5,4 @@
@ stdcall -private DllCanUnloadNow()
@ stub DllGetClassObject
-@ stub DllGetVersion
+@ stdcall -private DllGetVersion(ptr)
diff --git a/dlls/explorerframe/explorerframe_main.c b/dlls/explorerframe/explorerframe_main.c
index 4fa5cc6..51f7d39 100644
--- a/dlls/explorerframe/explorerframe_main.c
+++ b/dlls/explorerframe/explorerframe_main.c
@@ -64,3 +64,33 @@ HRESULT WINAPI DllCanUnloadNow(void)
TRACE("refCount is %d\n", EFRAME_refCount);
return EFRAME_refCount ? S_FALSE : S_OK;
}
+
+/*************************************************************************
+ * DllGetVersion (ExplorerFrame.@)
+ */
+HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *info)
+{
+ TRACE("%p\n", info);
+ if(info->cbSize == sizeof(DLLVERSIONINFO) ||
+ info->cbSize == sizeof(DLLVERSIONINFO2))
+ {
+ /* Windows 7 */
+ info->dwMajorVersion = 6;
+ info->dwMinorVersion = 1;
+ info->dwBuildNumber = 7600;
+ info->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
+ if(info->cbSize == sizeof(DLLVERSIONINFO2))
+ {
+ DLLVERSIONINFO2 *info2 = (DLLVERSIONINFO2*)info;
+ info2->dwFlags = 0;
+ info2->ullVersion = MAKEDLLVERULL(info->dwMajorVersion,
+ info->dwMinorVersion,
+ info->dwBuildNumber,
+ 16385); /* "hotfix number" */
+ }
+ return S_OK;
+ }
+
+ WARN("wrong DLLVERSIONINFO size from app.\n");
+ return E_INVALIDARG;
+}
--
1.7.2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic