diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/pipe.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/osl/w32/pipe.c b/sal/osl/w32/pipe.c index 7693a25b6196..4f5e7c9a10ac 100644 --- a/sal/osl/w32/pipe.c +++ b/sal/osl/w32/pipe.c @@ -234,6 +234,14 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options rtl_uString_release( name ); rtl_uString_release( path ); + // We should try to transfer our privilege to become foreground process + // to the other process, so that it may show popups (otherwise, they might + // be blocked by SPI_GETFOREGROUNDLOCKTIMEOUT setting - + // see SystemParametersInfo function at MSDN + ULONG ServerProcessId = 0; + if (GetNamedPipeServerProcessId(pPipe->m_File, &ServerProcessId)) + AllowSetForegroundWindow(ServerProcessId); + return pPipe; } else |