简体   繁体   English

以编程方式更改 Windows 10 壁纸(限制使用“组策略中的活动桌面壁纸”)

[英]Change Windows 10 wallpaper programmatically (Restricted using 'Active Desktop Wallpaper in Group Policy')

To be sincere, in my company system changing the wallpaper has been restricted.老实说,在我公司的系统中,更换壁纸一直受到限制。 They have put up a black screen as wallpaper, so whenever I open up the system it feels like am in a dead place.他们设置了一个黑屏作为壁纸,所以每当我打开系统时,感觉就像在死地。

I think they are using 'Active Desktop Wallpaper in Group Policy' for restricting the wallpaper change.我认为他们正在使用“组策略中的活动桌面壁纸”来限制壁纸更改。 First of all, am just curious to know whether it is possible and is there a way to override this programmatically?首先,我只是想知道这是否可能并且有没有办法以编程方式覆盖它? I don't need full code, some pointers would be really helpful.我不需要完整的代码,一些指针会很有帮助。

There is no way to change the wallpaper if it was restricted in the windows group policy, this applies to all windows version, including Windows 10, any attempts of trying to change it via winapi functions will result in failure, and changing the GP using a non-administrator account is not possible. There is no way to change the wallpaper if it was restricted in the windows group policy, this applies to all windows version, including Windows 10, any attempts of trying to change it via winapi functions will result in failure, and changing the GP using a非管理员帐户是不可能的。

Also, sins you said that this is in the company for which you work I suggest staying away from any attempts of changing it as you may get into trouble.此外,你说这是在你工作的公司中的罪过,我建议远离任何改变它的尝试,因为你可能会遇到麻烦。

Just something that I wouldn't recommend but is kind of possible只是我不推荐但有可能的东西

There is a way tho to not really change the wallpaper but instead create a type of overlay which will put a image in front of the wallpaper while still having files and folders be top most, a good example of this is Wallpaper Engine, but I wouldn't recommend doing this either, because, just like attempting to change the actual wallpaper, it may result in you getting into trouble.有一种方法可以不真正更改壁纸,而是创建一种叠加层,将图像放在壁纸前面,同时仍然将文件和文件夹放在最前面,一个很好的例子是 Wallpaper Engine,但我不会也不建议这样做,因为就像尝试更改实际壁纸一样,它可能会给您带来麻烦。

If you are restricted to change the wallpaper by a windows policy, nothing can allow you to do it.如果您被 windows 政策限制更改墙纸,则没有什么可以让您这样做。

Any WinAPI will refuse to do that.任何 WinAPI 都会拒绝这样做。

As I know.我所知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM