Questions tagged [systemparametersinfo]

5 questions
3
votes
1 answer

DisableAbsoluteVolume on Windows 10

There are some settings that I need to be able to set at runtime, without a reboot. Using X-Mouse Controls as a guide, I've found a way to programmatically use SystemParametersInfo() to set up active window tracking (SPI_SET_ACTIVEWINDOWTRACKING),…
Tripp Kinetics
  • 5,178
  • 2
  • 23
  • 37
0
votes
0 answers

Set SystemParametersInfo is not working with window scheduler or other automating system

I'm trying to update window background using powershell. It works well when I execute it manually. However for some needs, I want to run it by window scheduler or other automation program. And it doesn't…
Lentasha
  • 1
  • 1
0
votes
0 answers

How to quickly change wallpaper in c++?

Is there any quick way to change a windows wallpaper in C++? I'm trying to animate a wallpaper and am going through a directory of images and setting the wallpaper to an image every few milliseconds, problem is, even when running on a thread, there…
anon
0
votes
1 answer

show menu item based on system parameter odoo 15

How to show/hide menu item based on system parameter? I've this code to create menu item, and it working fine, but i need to hide it depends on system parameter.
fudu
  • 617
  • 1
  • 10
  • 19
0
votes
0 answers

SystemParametersInfo() settings failed to activate the screensaver,error code = 329

During the Windows login process, I try to activate the screensaver: ret = SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, state, NULL, 0); When I use GetLastError(), it returns 329; I found on MSDN: If the machine has entered power saving mode or…