Commit 3e35bf38 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shlwapi: Forward SHRegDuplicateHKey() to shcore.dll.

parent c7c91b93
MODULE = shcore.dll MODULE = shcore.dll
IMPORTLIB = shcore
IMPORTS = user32 gdi32 ole32 advapi32 IMPORTS = user32 gdi32 ole32 advapi32
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin
......
EXTRADEFS = -D_SHLWAPI_ EXTRADEFS = -D_SHLWAPI_
MODULE = shlwapi.dll MODULE = shlwapi.dll
IMPORTLIB = shlwapi IMPORTLIB = shlwapi
IMPORTS = uuid user32 gdi32 advapi32 kernelbase IMPORTS = uuid shcore user32 gdi32 advapi32 kernelbase
DELAYIMPORTS = userenv oleaut32 ole32 comctl32 comdlg32 mpr mlang urlmon shell32 winmm version DELAYIMPORTS = userenv oleaut32 ole32 comctl32 comdlg32 mpr mlang urlmon shell32 winmm version
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin
......
...@@ -932,26 +932,6 @@ BOOL WINAPI UnregisterExtensionForMIMETypeW(LPCWSTR lpszType) ...@@ -932,26 +932,6 @@ BOOL WINAPI UnregisterExtensionForMIMETypeW(LPCWSTR lpszType)
return TRUE; return TRUE;
} }
/*************************************************************************
* SHRegDuplicateHKey [SHLWAPI.@]
*
* Create a duplicate of a registry handle.
*
* PARAMS
* hKey [I] key to duplicate.
*
* RETURNS
* A new handle pointing to the same key as hKey.
*/
HKEY WINAPI SHRegDuplicateHKey(HKEY hKey)
{
HKEY newKey = 0;
RegOpenKeyExA(hKey, 0, 0, MAXIMUM_ALLOWED, &newKey);
TRACE("new key is %p\n", newKey);
return newKey;
}
/* /*
* The following functions are ORDINAL ONLY: * The following functions are ORDINAL ONLY:
*/ */
......
...@@ -720,7 +720,7 @@ ...@@ -720,7 +720,7 @@
@ stdcall SHRegDeleteEmptyUSKeyW(long wstr long) @ stdcall SHRegDeleteEmptyUSKeyW(long wstr long)
@ stdcall SHRegDeleteUSValueA(long str long) @ stdcall SHRegDeleteUSValueA(long str long)
@ stdcall SHRegDeleteUSValueW(long wstr long) @ stdcall SHRegDeleteUSValueW(long wstr long)
@ stdcall SHRegDuplicateHKey (long) @ stdcall -import SHRegDuplicateHKey(long)
@ stdcall SHRegEnumUSKeyA(long long str ptr long) @ stdcall SHRegEnumUSKeyA(long long str ptr long)
@ stdcall SHRegEnumUSKeyW(long long wstr ptr long) @ stdcall SHRegEnumUSKeyW(long long wstr ptr long)
@ stdcall SHRegEnumUSValueA(long long ptr ptr ptr ptr ptr long) @ stdcall SHRegEnumUSValueA(long long ptr ptr ptr ptr ptr long)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment