shell32(4/6): Implement IQueryAssociations::GetString for ASSOCF_FRIENDLYDOCNAME
Juan Lang
juan.lang at gmail.com
Wed Aug 26 17:01:37 CDT 2009
--Juan
-------------- next part --------------
From 4452211d6533060ab3c79d1eceb9a6ffcf3680f4 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Wed, 26 Aug 2009 14:31:26 -0700
Subject: [PATCH 6/8] Implement IQueryAssociations::GetString for ASSOCF_FRIENDLYDOCNAME
---
dlls/shell32/assoc.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/assoc.c b/dlls/shell32/assoc.c
index 630d7da..c4995e5 100644
--- a/dlls/shell32/assoc.c
+++ b/dlls/shell32/assoc.c
@@ -229,6 +229,15 @@ static HRESULT QueryAssociations_GetCommand(QueryAssociationsImpl *This,
return hr;
}
+static HRESULT QueryAssociations_GetFriendlyDocName(QueryAssociationsImpl *This,
+ ASSOCF flags, LPWSTR pszOut, DWORD *pcchOut)
+{
+ LONG l = RegGetValueW(This->key, NULL, NULL, RRF_RT_REG_SZ, NULL,
+ pszOut, pcchOut);
+
+ return HRESULT_FROM_WIN32(l);
+}
+
static HRESULT WINAPI IQueryAssociations_fnGetString(IQueryAssociations *iface,
ASSOCF flags, ASSOCSTR str, LPCWSTR pszExtra, LPWSTR pszOut,
DWORD *pcchOut)
@@ -247,6 +256,10 @@ static HRESULT WINAPI IQueryAssociations_fnGetString(IQueryAssociations *iface,
hr = QueryAssociations_GetCommand(This, flags, pszExtra, pszOut,
pcchOut);
break;
+ case ASSOCSTR_FRIENDLYDOCNAME:
+ hr = QueryAssociations_GetFriendlyDocName(This, flags, pszOut,
+ pcchOut);
+ break;
default:
FIXME("unimplemented for %d, %s\n", str, debugstr_w(pszExtra));
hr = E_NOTIMPL;
--
1.6.3.2
More information about the wine-patches
mailing list