From ebdc1f46b7d0dd8c9770c144101d747f5711508b Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Sun, 18 Jan 2004 22:07:57 +0000 Subject: [PATCH] Added stub for SHRegisterValidateTemplate. --- dlls/shlwapi/reg.c | 31 +++++++++++++++++++++++++++++++ dlls/shlwapi/shlwapi.spec | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/dlls/shlwapi/reg.c b/dlls/shlwapi/reg.c index 623620dd9f0..82e4647f8b6 100644 --- a/dlls/shlwapi/reg.c +++ b/dlls/shlwapi/reg.c @@ -2190,3 +2190,34 @@ HRESULT WINAPI SHRegGetCLSIDKeyW(REFGUID guid, LPCWSTR lpszValue, BOOL bUseHKCU, return dwRet ? HRESULT_FROM_WIN32(dwRet) : S_OK; } + +/************************************************************************* + * SHRegisterValidateTemplate [SHLWAPI.@] + * + * observed from the ie 5.5 installer: + * - allocates a buffer with the size of the given file + * - read the file content into the buffer + * - creates the key szTemplateKey + * - sets "205523652929647911071668590831910975402"=dword:00002e37 at + * the key + * + * PARAMS + * filename [I] An existing file its content is read into an allocated + * buffer + * unknown [I] + * + * RETURNS + * Success: ERROR_SUCCESS. + */ +HRESULT WINAPI SHRegisterValidateTemplate(LPCWSTR filename, BOOL unknown) +{ +/* static const WCHAR szTemplateKey[] = { 'S','o','f','t','w','a','r','e','\\', + * 'M','i','c','r','o','s','o','f','t','\\','W','i','n','d','o','w','s','\\', + * 'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\', + * 'E','x','p','l','o','r','e','r','\\', + * 'T','e','m','p','l','a','t','e','R','e','g','i','s','t','r','y',0 }; + */ + FIXME("stub: %s, %08x\n", debugstr_w(filename), unknown); + + return S_OK; +} diff --git a/dlls/shlwapi/shlwapi.spec b/dlls/shlwapi/shlwapi.spec index c7d85ba8f6c..5334c4782de 100644 --- a/dlls/shlwapi/shlwapi.spec +++ b/dlls/shlwapi/shlwapi.spec @@ -826,7 +826,7 @@ @ stdcall SHRegDuplicateHKey (long) @ stdcall SHRegSetPathA(long str str str long) @ stdcall SHRegSetPathW(long wstr wstr wstr long) -@ stub SHRegisterValidateTemplate +@ stdcall SHRegisterValidateTemplate(wstr long) @ stdcall SHSetThreadRef (ptr) @ stdcall SHReleaseThreadRef() @ stdcall SHSkipJunction(ptr ptr)