mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[SHELL32][SDK] Implement Activate_RunDLL (#5840)
- Add Activate_RunDLL function implementation. - Add Activate_RunDLL prototype to <undocshell.h>.
This commit is contained in:
committed by
GitHub
parent
2ccdd87809
commit
ad5df2d199
@@ -577,3 +577,30 @@ SHOpenPropSheetA(
|
||||
return SHOpenPropSheetW(pszCaptionW, ahKeys, cKeys, pclsidDefault,
|
||||
pDataObject, pShellBrowser, pszStartPageW);
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* Activate_RunDLL [SHELL32.105]
|
||||
*
|
||||
* Unlocks the foreground window and allows the shell window to become the
|
||||
* foreground window. Every parameter is unused.
|
||||
*/
|
||||
EXTERN_C
|
||||
BOOL WINAPI
|
||||
Activate_RunDLL(
|
||||
_In_ DWORD dwUnused1,
|
||||
_In_ LPVOID lpUnused2,
|
||||
_In_ LPVOID lpUnused3,
|
||||
_In_ LPVOID lpUnused4)
|
||||
{
|
||||
DWORD dwPID;
|
||||
|
||||
UNREFERENCED_PARAMETER(dwUnused1);
|
||||
UNREFERENCED_PARAMETER(lpUnused2);
|
||||
UNREFERENCED_PARAMETER(lpUnused3);
|
||||
UNREFERENCED_PARAMETER(lpUnused4);
|
||||
|
||||
TRACE("(%lu, %p, %p, %p)\n", dwUnused1, lpUnused2, lpUnused3, lpUnused4);
|
||||
|
||||
GetWindowThreadProcessId(GetShellWindow(), &dwPID);
|
||||
return AllowSetForegroundWindow(dwPID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user