shell32: Added GetCurrentProcessExplicitAppUserModelID() stub.
This commit is contained in:
parent
5178c8b111
commit
e7acfee978
|
@ -1,3 +1,3 @@
|
|||
@ 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
|
||||
|
|
|
@ -1377,6 +1377,16 @@ HRESULT WINAPI SetCurrentProcessExplicitAppUserModelID(PCWSTR appid)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetCurrentProcessExplicitAppUserModelID (SHELL32.@)
|
||||
*/
|
||||
HRESULT WINAPI GetCurrentProcessExplicitAppUserModelID(PWSTR *appid)
|
||||
{
|
||||
FIXME("%p: stub\n", appid);
|
||||
*appid = NULL;
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* SHSetUnreadMailCountW (SHELL32.@)
|
||||
*/
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue