Commit e7acfee9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: Added GetCurrentProcessExplicitAppUserModelID() stub.

parent 5178c8b1
@ stdcall CommandLineToArgvW(wstr ptr) shell32.CommandLineToArgvW
@ stub GetCurrentProcessExplicitAppUserModelID
@ stdcall GetCurrentProcessExplicitAppUserModelID(ptr) shell32.GetCurrentProcessExplicitAppUserModelID
@ stdcall SetCurrentProcessExplicitAppUserModelID(wstr) shell32.SetCurrentProcessExplicitAppUserModelID
......@@ -310,6 +310,7 @@
@ stdcall FindExecutableW(wstr wstr ptr)
@ stub FixupOptionalComponents
@ stdcall FreeIconList(long)
@ stdcall GetCurrentProcessExplicitAppUserModelID(ptr)
@ stdcall InitNetworkAddressControl()
@ stub InternalExtractIconListA
@ stub InternalExtractIconListW
......
......@@ -1378,6 +1378,16 @@ HRESULT WINAPI SetCurrentProcessExplicitAppUserModelID(PCWSTR appid)
}
/***********************************************************************
* GetCurrentProcessExplicitAppUserModelID (SHELL32.@)
*/
HRESULT WINAPI GetCurrentProcessExplicitAppUserModelID(PWSTR *appid)
{
FIXME("%p: stub\n", appid);
*appid = NULL;
return E_NOTIMPL;
}
/***********************************************************************
* SHSetUnreadMailCountW (SHELL32.@)
*/
HRESULT WINAPI SHSetUnreadMailCountW(LPCWSTR mailaddress, DWORD count, LPCWSTR executecommand)
......
......@@ -29,6 +29,7 @@
static const CHAR testwindow_class[] = "testwindow";
static HMONITOR (WINAPI *pMonitorFromWindow)(HWND, DWORD);
static HRESULT (WINAPI *pGetCurrentProcessExplicitAppUserModelID)(PWSTR*);
typedef BOOL (*boolean_function)(void);
......@@ -430,15 +431,39 @@ static void test_appbarget(void)
return;
}
static void test_GetCurrentProcessExplicitAppUserModelID(void)
{
WCHAR *appid;
HRESULT hr;
if (!pGetCurrentProcessExplicitAppUserModelID)
{
win_skip("GetCurrentProcessExplicitAppUserModelID() is not supported.\n");
return;
}
if (0) /* crashes on native */
hr = pGetCurrentProcessExplicitAppUserModelID(NULL);
appid = (void*)0xdeadbeef;
hr = pGetCurrentProcessExplicitAppUserModelID(&appid);
todo_wine
ok(hr == E_FAIL, "got 0x%08x\n", hr);
ok(appid == NULL, "got %p\n", appid);
}
START_TEST(appbar)
{
HMODULE huser32;
HMODULE huser32, hshell32;
huser32 = GetModuleHandleA("user32.dll");
hshell32 = GetModuleHandleA("shell32.dll");
pMonitorFromWindow = (void*)GetProcAddress(huser32, "MonitorFromWindow");
pGetCurrentProcessExplicitAppUserModelID = (void*)GetProcAddress(hshell32, "GetCurrentProcessExplicitAppUserModelID");
register_testwindow_class();
test_setpos();
test_appbarget();
test_GetCurrentProcessExplicitAppUserModelID();
}
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