[SHELL32][SDK] Follow-up of #5840 (ad5df2d)

Fix the parameters of Activate_RunDLL.
This commit is contained in:
Katayama Hirofumi MZ 2023-10-28 21:31:11 +09:00
parent ad5df2d199
commit a52c713755
3 changed files with 17 additions and 17 deletions

View file

@ -101,7 +101,7 @@
102 stdcall SHCoCreateInstance(wstr ptr long ptr ptr)
103 stdcall SignalFileOpen(ptr)
104 stdcall OpenAs_RunDLLW(long long wstr long)
105 stdcall Activate_RunDLL(long ptr ptr ptr)
105 stdcall Activate_RunDLL(ptr ptr wstr long)
106 stdcall AppCompat_RunDLLW(ptr ptr wstr long)
107 stdcall CheckEscapesA(str long)
108 stdcall CheckEscapesW(wstr long)

View file

@ -587,20 +587,20 @@ SHOpenPropSheetA(
EXTERN_C
BOOL WINAPI
Activate_RunDLL(
_In_ DWORD dwUnused1,
_In_ LPVOID lpUnused2,
_In_ LPVOID lpUnused3,
_In_ LPVOID lpUnused4)
_In_ HWND hwnd,
_In_ HINSTANCE hinst,
_In_ LPCWSTR cmdline,
_In_ INT cmdshow)
{
DWORD dwPID;
DWORD dwProcessID;
UNREFERENCED_PARAMETER(dwUnused1);
UNREFERENCED_PARAMETER(lpUnused2);
UNREFERENCED_PARAMETER(lpUnused3);
UNREFERENCED_PARAMETER(lpUnused4);
UNREFERENCED_PARAMETER(hwnd);
UNREFERENCED_PARAMETER(hinst);
UNREFERENCED_PARAMETER(cmdline);
UNREFERENCED_PARAMETER(cmdshow);
TRACE("(%lu, %p, %p, %p)\n", dwUnused1, lpUnused2, lpUnused3, lpUnused4);
TRACE("(%p, %p, %s, %d)\n", hwnd, hinst, debugstr_w(cmdline), cmdline);
GetWindowThreadProcessId(GetShellWindow(), &dwPID);
return AllowSetForegroundWindow(dwPID);
GetWindowThreadProcessId(GetShellWindow(), &dwProcessID);
return AllowSetForegroundWindow(dwProcessID);
}

View file

@ -722,10 +722,10 @@ BOOL WINAPI IsSuspendAllowed(VOID);
BOOL WINAPI
Activate_RunDLL(
_In_ DWORD dwUnused1,
_In_ LPVOID lpUnused2,
_In_ LPVOID lpUnused3,
_In_ LPVOID lpUnused4);
_In_ HWND hwnd,
_In_ HINSTANCE hinst,
_In_ LPCWSTR cmdline,
_In_ INT cmdshow);
/*****************************************************************************
* Shell32 resources