[PATCH v2 0/1] MR11199: user32: Add a stub for IsImmersiveProcess().
IsImmersiveProcess is an unexported stub (# @ stub) in user32. Applications that import it abort at startup on the unimplemented function. The Elgato Stream Deck software is one example; it calls IsImmersiveProcess repeatedly during startup. The patch adds a stub returning FALSE, matching the neighbouring IsWindowArranged and IsWindowRedirectedForPrint tubs. Wine has no immersive (packaged/UWP) processes, so FALSE is correct for every process. I left out a test, since IsWindowArranged and IsWindowRedirectedForPrint are stubbed the same way without one. Signed-off-by: Thomas Portal portal.thomas@protonmail.com -- v2: user32: Add a stub for IsImmersiveProcess(). https://gitlab.winehq.org/wine/wine/-/merge_requests/11199
From: Thomas Portal <portal.thomas@protonmail.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59891 Signed-off-by: Thomas Portal <portal.thomas@protonmail.com> --- dlls/user32/misc.c | 9 +++++++++ dlls/user32/user32.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c index 6333fcb48b4..5e26601d234 100644 --- a/dlls/user32/misc.c +++ b/dlls/user32/misc.c @@ -440,6 +440,15 @@ BOOL WINAPI UnregisterSuspendResumeNotification(HPOWERNOTIFY handle) return TRUE; } +/********************************************************************** + * IsImmersiveProcess [USER32.@] + */ +BOOL WINAPI IsImmersiveProcess( HANDLE process ) +{ + FIXME("(%p): stub\n", process); + return FALSE; +} + /********************************************************************** * IsWindowRedirectedForPrint [USER32.@] */ diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index 93ced8d8f3d..e6033186490 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -785,7 +785,7 @@ @ stdcall IsGUIThread(long) @ stdcall IsHungAppWindow(long) @ stdcall IsIconic(long) -# @ stub IsImmersiveProcess +@ stdcall IsImmersiveProcess(ptr) # @ stub IsInDesktopWindowBand @ stdcall IsMenu(long) @ stdcall IsMouseInPointerEnabled() NtUserIsMouseInPointerEnabled -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11199
participants (2)
-
Thomas Portal -
Thomas Portal (@OursCodeur)