Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 1542 of file sysparams.c.
Referenced by IntPaintDesktop(), NtUserSystemParametersInfo(), and UserDrawCaptionText().
{ ULONG_PTR ulResult; PPROCESSINFO ppi = PsGetCurrentProcessWin32Process(); ASSERT(ppi); if (!gbSpiInitialized) { KeRosDumpStackFrames(NULL, 20); //ASSERT(FALSE); return FALSE; } /* Get a pointer to the current Windowstation */ if (!ppi->prpwinsta) { ERR("UserSystemParametersInfo called without active windowstation.\n"); //ASSERT(FALSE); //return FALSE; } /* Do the actual operation */ ulResult = SpiGetSet(uiAction, uiParam, pvParam, fWinIni); /* Did we change something? */ if (ulResult > 1) { SpiFixupValues(); /* Update system metrics */ InitMetrics(); /* Send notification to toplevel windows, if requested */ if (fWinIni & (SPIF_SENDCHANGE | SPIF_SENDWININICHANGE)) { /* Send WM_SETTINGCHANGE to all toplevel windows */ co_IntSendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, (WPARAM)uiAction, (LPARAM)ulResult, SMTO_NORMAL, 100, &ulResult); } ulResult = 1; } return ulResult; }