Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I retrieve The wallpaper of an user

Status
Not open for further replies.

shadowlesshand

Programmer
May 29, 2002
21
HK
Hi,
I am writing a code to backup files and folders. I need to back up the users desktop wallpaper. How do I do this. There could be several users.
Thanks
 
Hi,

I'm not to sure how to extract data from the registry so I'll leave it up to other to explain the function but the display settings are stored in the registry under :

HKEY_CURRENT_USER\Control Panel\Desktop
You should be able to get the file name from there and then backup the file.

If there's more than 1 user, I'm not sure but they should all be stored in the registy under :

HKEY_USERS\{user}\Control Panel\Desktop.

I'm not all that good with VB, but since your post didn't have any answer yet I thought I would try :)
 
The easy way to save/restore registry keys is via the appropriate API calls. There is a fully worked VB sample towards the bottom of this page:


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top