Sign in to follow this  
Followers 0
Achilles

Question about changing a desktop wallpaper

6 posts in this topic

#1 ·  Posted (edited)

I have this:

DllCall('User32.dll', 'int', 'SystemParametersInfo', 'int', 20, 'int', 0, 'string', @WindowsDir & '\xwall.bmp', 'int', 0)

What I want to know is what the numbers do.

More specifically I want to know how I would change 'WallpaperStyle' and 'TileWallpaper' (both these have values in the regedit file...).

Anybody have any ideas?

EDIT: I want to change the 'WallpaperStyle' and 'TileWallpaper' when I call the Dll, I already know that I could to regwrite to change the value.

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites



ezzetabi and others have posted complete UDFs on this subject. I'm sure a search will bring your answers. :)

Share this post


Link to post
Share on other sites

ezzetabi and others have posted complete UDFs on this subject. I'm sure a search will bring your answers. :)

I've tried searching but I didn't find any results. I only found people using this dll the way I posted it it with to explanation to why they use the numbers they do. I'll search some more though... maybe I missed a topic somewhere

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

http://msdn2.microsoft.com/en-us/library/ms724947.aspx

Lots of info there, I'm still reading through it myself.

* After a bit of reading, it appears that those options are only set via the registry. Any particular reason you didn't want to do that?

Edited by Saunders

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

ezzetabi and others have posted complete UDFs on this subject. I'm sure a search will bring your answers. :)

Alright I searched for "wallpaper" specific to "ezzetabi" and managed to find the answer, thanks for the suggestion!

This is where I found for anyone who wants to look later.

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0