Re: [Dev-C++] Windows desktop-picture-path?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jason H. <jas...@bt...> - 2002-01-30 23:16:01
|
It took a little searching but I have found what I think you want. The path for a desktop image is stored in the Registry. I don't know a great deal about the registry, how it's organised, what various keys mean, but I think the one you want is "HKEY_USERS\.DEFAULT\Control Panel\Desktop" and "Wallpaper" (you can look it up with RegEdit). There is other data under that key heading, which I think will tell you other status information about the desktop appearance. There is probably a reference somewhere for information like this. Try the MSDN website? To access the key you can use the RegOpenKeyEx() and RegQueryValue() functions which are detailed in the Win32 API. If you need any help using these functions just ask. Sorry I don't have more info, but I hope this gets you started. If you want I will work up an example when I have some spare time. There may also be an enum or get fuction of some sort that will retrieve this information for you, if anyone else knows it? Jason. ----- Original Message ----- From: "Stein Nygård" <ste...@ge...> To: "DevCpp" <dev...@li...> Sent: Tuesday, January 29, 2002 9:18 PM Subject: [Dev-C++] Windows desktop-picture-path? > Hi all! > > I was wondering... Is it possible to read the path to the current > desktop-picture chosen in windows? Eg. if someone has chosen > "C:/Documents/MyPic.bmp" as deesktop-picture, is it then posibble to > retrieve that path? > Thanks! > > - stein > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |