Commit 6c876de7 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

shell32: Add SHCreateSessionKey stub.

parent e18654ed
...@@ -261,6 +261,7 @@ ...@@ -261,6 +261,7 @@
704 stdcall -noname GUIDFromStringW(wstr ptr) 704 stdcall -noname GUIDFromStringW(wstr ptr)
709 stdcall SHGetSetFolderCustomSettings(ptr str long) 709 stdcall SHGetSetFolderCustomSettings(ptr str long)
714 stdcall @(ptr) SHELL32_714 # PathIsTemporaryW 714 stdcall @(ptr) SHELL32_714 # PathIsTemporaryW
723 stdcall -noname SHCreateSessionKey(long ptr)
727 stdcall SHGetImageList(long ptr ptr) 727 stdcall SHGetImageList(long ptr ptr)
730 stdcall -noname RestartDialogEx(long wstr long long) 730 stdcall -noname RestartDialogEx(long wstr long long)
743 stdcall SHCreateFileExtractIconW(wstr long ptr ptr) 743 stdcall SHCreateFileExtractIconW(wstr long ptr ptr)
......
...@@ -147,3 +147,14 @@ HRESULT WINAPI SHRegCloseKey (HKEY hkey) ...@@ -147,3 +147,14 @@ HRESULT WINAPI SHRegCloseKey (HKEY hkey)
TRACE("%p\n",hkey); TRACE("%p\n",hkey);
return RegCloseKey( hkey ); return RegCloseKey( hkey );
} }
/*************************************************************************
* SHCreateSessionKey [SHELL32.723]
*
*/
HRESULT WINAPI SHCreateSessionKey(REGSAM access, HKEY *hkey)
{
FIXME("stub: %d %p\n", access, hkey);
*hkey = NULL;
return E_NOTIMPL;
}
...@@ -867,7 +867,7 @@ static void test_SHCreateSessionKey(void) ...@@ -867,7 +867,7 @@ static void test_SHCreateSessionKey(void)
if (!pSHCreateSessionKey) if (!pSHCreateSessionKey)
{ {
skip("SHCreateSessionKey is not implemented\n"); win_skip("SHCreateSessionKey is not implemented\n");
return; return;
} }
...@@ -876,15 +876,15 @@ static void test_SHCreateSessionKey(void) ...@@ -876,15 +876,15 @@ static void test_SHCreateSessionKey(void)
hkey = (HKEY)0xdeadbeef; hkey = (HKEY)0xdeadbeef;
hr = pSHCreateSessionKey(0, &hkey); hr = pSHCreateSessionKey(0, &hkey);
ok(hr == E_ACCESSDENIED, "got 0x%08x\n", hr); todo_wine ok(hr == E_ACCESSDENIED, "got 0x%08x\n", hr);
ok(hkey == NULL, "got %p\n", hkey); ok(hkey == NULL, "got %p\n", hkey);
hr = pSHCreateSessionKey(KEY_READ, &hkey); hr = pSHCreateSessionKey(KEY_READ, &hkey);
ok(hr == S_OK, "got 0x%08x\n", hr); todo_wine ok(hr == S_OK, "got 0x%08x\n", hr);
hr = pSHCreateSessionKey(KEY_READ, &hkey2); hr = pSHCreateSessionKey(KEY_READ, &hkey2);
ok(hr == S_OK, "got 0x%08x\n", hr); todo_wine ok(hr == S_OK, "got 0x%08x\n", hr);
ok(hkey != hkey2, "got %p, %p\n", hkey, hkey2); todo_wine ok(hkey != hkey2, "got %p, %p\n", hkey, hkey2);
RegCloseKey(hkey); RegCloseKey(hkey);
RegCloseKey(hkey2); RegCloseKey(hkey2);
......
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