Windows 10 not responding to uiAction 47 (SPI_SETWORKAREA) for user32.dll's SystemParametersInfo(uAction, uParam, lpvParam, fuWinIni) -


does have information on why windows 10 no longer allows set custom workarea using systemparametersinfo? using reserve screen space dock/bar applications. had luck getting working?

for reference code on question works set custom work area in windows 8.1, 8, 7, , xp, no longer works on windows 10. how can resize desktop work area using spi_setworkarea flag?

my alternative options seem using shappbarmessage (not preferable not allow modifying form opacity knowledge), or using setwindowshookex wh_callwndproc, seems require .dll injection external processes?

i had similar issue, old program correctly set work area in windows 7 stopped working in windows 10.

what worked me changing 'fwinini' argument (the last argument) spif_change spif_updateinifile.

so, worked doesn't anymore:

private const uint spif_sendwininichange = 2; private const uint spif_updateinifile = 1; private const uint spif_change = spif_updateinifile | spif_sendwininichange; systemparametersinfo(spi_setworkarea, 0, ref rect, spif_change); 

what works correctly now:

private const uint spif_sendwininichange = 2; private const uint spif_updateinifile = 1; private const uint spif_change = spif_updateinifile | spif_sendwininichange; systemparametersinfo(spi_setworkarea, 0, ref rect, spif_updateinifile); 

hopefully works well.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -