Where are Photo Screensaver settings saved?

Hi,
I need to programatically change settings for the Photo Screensaver. The registry keys used in Windows Vista no longer apply in Windows 7. I tried using a folder with an uncommon folder name to point the Photo Screensaver to so that it would be easier to find in the registry. When I do a registry search, the folder name cannot be found. Maybe this is kept in a settings file somewhere instead of the registry?
We use a custom photo deck for our screensaver and it hasn't worked well to put it in the Pictures folder. You'll end up displaying personal photos along with the custom photos. I have been making a folder in Program Files and pointing the screensaver there.
The settings I would like to be able to change are:
Use pictures from: (you browse to the folder that contains your photos)
Slide show speed: (change the transition speed of the photos)
Shuffle pictures: (I would like to be able to check this box so the photos display randomly)
If anyone knows where to find these settings, it would be greatly appreciated if you could share the location of these settings.
Thanks,
Rob

you can use this code 
cls
#That string is encoded in Base64, without headers. There is a Windows API that encrypt binary arrays (the PIDL) to Base64, CryptBinaryToString. The dwFlags parameter should be set to CRYPT_STRING_BASE64.
#Our problem is the inverse, given a Base64 string (the encoded PIDL), get the decoded PIDL. There's an API for that, too!, CryptStringToBinary. The dwFlags parameter should also be set to CRYPT_STRING_BASE64.
#I think it is not hard to write a small program that uses those API's (and some more to get a "readable" path from the PIDL); ask in the MSDN forums to get directions if you get stuck.
#http://www.ms-windows.info/Help/windows-photo-screensaver-settings-19334.aspx
#http://msdn.microsoft.com/en-us/library/aa379887(v=vs.85).aspx
#BOOL WINAPI CryptBinaryToString(
# _In_ const BYTE *pbBinary,
# _In_ DWORD cbBinary,
# _In_ DWORD dwFlags,
# _Out_opt_ LPTSTR pszString,
# _Inout_ DWORD *pcchString
#http://msdn.microsoft.com/en-us/library/aa380285(v=vs.85).aspx
#BOOL WINAPI CryptStringToBinary(
# _In_ LPCTSTR pszString,
# _In_ DWORD cchString,
# _In_ DWORD dwFlags,
# _In_ BYTE *pbBinary,
# _Inout_ DWORD *pcbBinary,
# _Out_ DWORD *pdwSkip,
# _Out_ DWORD *pdwFlags
add-type @"
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
public static class PIDLUtils
// funciones
[DllImport("shell32.dll")]
public static extern Int32 SHGetDesktopFolder(out IShellFolder ppshf);
[DllImport("shell32.dll")]
public static extern bool SHGetPathFromIDList(IntPtr pidl, StringBuilder pszPath);
[DllImport("crypt32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool CryptBinaryToString(IntPtr pcbBinary, int cbBinary, uint dwFlags, StringBuilder pszString, ref int pcchString);
[DllImport("crypt32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool CryptStringToBinary(string pszString, int cchString, uint dwFlags, IntPtr pbBinary, ref int pcbBinary, ref int pdwSkip, ref int pdwFlags);
// interfaces
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("000214E6-0000-0000-C000-000000000046")]
public interface IShellFolder
Int32 ParseDisplayName(IntPtr hwnd, IntPtr pbc, String pszDisplayName, UInt32 pchEaten, out IntPtr ppidl, UInt32 pdwAttributes);
Int32 EnumObjects(IntPtr hwnd, ESHCONTF grfFlags, out IntPtr ppenumIDList);
Int32 BindToObject(IntPtr pidl, IntPtr pbc, [In]ref Guid riid, out IntPtr ppv);
Int32 BindToStorage(IntPtr pidl, IntPtr pbc, [In]ref Guid riid, out IntPtr ppv);
Int32 CompareIDs(Int32 lParam, IntPtr pidl1, IntPtr pidl2);
Int32 CreateViewObject(IntPtr hwndOwner, [In] ref Guid riid, out IntPtr ppv);
Int32 GetAttributesOf(UInt32 cidl, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)]IntPtr[] apidl, ref ESFGAO rgfInOut);
Int32 GetUIObjectOf(IntPtr hwndOwner, UInt32 cidl, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)]IntPtr[] apidl, [In] ref Guid riid, UInt32 rgfReserved, out IntPtr ppv);
Int32 GetDisplayNameOf(IntPtr pidl, ESHGDN uFlags, out ESTRRET pName);
Int32 SetNameOf(IntPtr hwnd, IntPtr pidl, String pszName, ESHCONTF uFlags, out IntPtr ppidlOut);
// enumeraciones
public enum ESHCONTF
SHCONTF_FOLDERS = 0x0020,
SHCONTF_NONFOLDERS = 0x0040,
SHCONTF_INCLUDEHIDDEN = 0x0080,
SHCONTF_INIT_ON_FIRST_NEXT = 0x0100,
SHCONTF_NETPRINTERSRCH = 0x0200,
SHCONTF_SHAREABLE = 0x0400,
SHCONTF_STORAGE = 0x0800
public enum ESFGAO : uint
SFGAO_CANCOPY = 0x00000001,
SFGAO_CANMOVE = 0x00000002,
SFGAO_CANLINK = 0x00000004,
SFGAO_LINK = 0x00010000,
SFGAO_SHARE = 0x00020000,
SFGAO_READONLY = 0x00040000,
SFGAO_HIDDEN = 0x00080000,
SFGAO_FOLDER = 0x20000000,
SFGAO_FILESYSTEM = 0x40000000,
SFGAO_HASSUBFOLDER = 0x80000000,
public enum ESHGDN
SHGDN_NORMAL = 0x0000,
SHGDN_INFOLDER = 0x0001,
SHGDN_FOREDITING = 0x1000,
SHGDN_FORADDRESSBAR = 0x4000,
SHGDN_FORPARSING = 0x8000,
public enum ESTRRET : int
eeRRET_WSTR = 0x0000,
STRRET_OFFSET = 0x0001,
STRRET_CSTR = 0x0002
// constantes
private const uint CRYPT_STRING_BASE64 = 1;
// mis funciones
public static string Encode(string myClearPath)
IShellFolder folder;
IntPtr pidl;
string Pathcodificado;
Pathcodificado = "ERROR";
string myPathTextoPlano = myClearPath;
//string myPathTextoPlano = @"c:\flashtool"; // Regex.Escape(myClearPath);
// este es el folder del escritorio (raíz del espacio de nombres del shell)
if (SHGetDesktopFolder(out folder) == 0)
// pidl del archivo
//folder.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, @"C:\walter\yo.png", 0, out pidl, 0);
folder.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, myPathTextoPlano, 0, out pidl, 0);
// parseo el pidl para obtener sus tamaño
int k = 0;
short cb = 0;
// ONLY WORKS WITH .NET FRAMEWORK 4
// while ((k = Marshal.ReadInt16(pidl + cb)) > 0)
// cb += (short)k;
IntPtr tempIntPtr = new IntPtr(pidl.ToInt64() + cb);
while ((k = Marshal.ReadInt16(tempIntPtr)) > 0)
cb += (short)k;
tempIntPtr = new IntPtr(pidl.ToInt64() + cb);
cb += 2;
// encripto el pidl
StringBuilder sb = new StringBuilder();
int largo = 0;
CryptBinaryToString(pidl, cb, CRYPT_STRING_BASE64, null, ref largo);
sb.Capacity = largo;
if (CryptBinaryToString(pidl, cb, CRYPT_STRING_BASE64, sb, ref largo))
//Console.WriteLine(sb.ToString());
Pathcodificado = sb.ToString();
Marshal.FreeCoTaskMem(pidl);
return Pathcodificado;
public static string Decode (string myEncryptedPath)
IShellFolder folder;
// IntPtr pidl;
string PathDescodificado;
PathDescodificado = "ERROR";
string mypathEncriptado = myEncryptedPath; // Regex.Escape(myEncryptedPath);
// este es el folder del escritorio (raíz del espacio de nombres del shell)
if (SHGetDesktopFolder(out folder) == 0)
// Desencripto
int a = 0;
int b = 0;
int largo = 0;
CryptStringToBinary(mypathEncriptado, mypathEncriptado.Length, CRYPT_STRING_BASE64, IntPtr.Zero, ref largo, ref a, ref b);
// recreo el objeto
IntPtr pidl2 = Marshal.AllocCoTaskMem(largo);
//if (CryptStringToBinary(sb.ToString(), sb.Length, CRYPT_STRING_BASE64, pidl2, ref largo, ref a, ref b))
StringBuilder sb = new StringBuilder();
if (CryptStringToBinary(mypathEncriptado, mypathEncriptado.Length, CRYPT_STRING_BASE64, pidl2, ref largo, ref a, ref b))
// muestro el path proveyendo el pidl reconstruído
//sb.Clear(); Only works with .NET 4
sb.Length = 0;
sb.Capacity = 261;
SHGetPathFromIDList(pidl2, sb);
//Console.WriteLine(sb.ToString());
PathDescodificado = sb.ToString();
//Marshal.FreeCoTaskMem(pidl);
Marshal.FreeCoTaskMem(pidl2);
return PathDescodificado;
try
$MyPath = "c:\Windows"
$Encrypted = [PIDLUtils]::Encode($MyPath)
$Encrypted
$notEncrypted = [PIDLUtils]::Decode($Encrypted)
$notEncrypted
catch
$_
break

Similar Messages

  • Where are custom equalizer settings saved on windows pc

    Where are iTunes custom equalizer settings saved on my Windows 7 hard drive? I always backup the entire iTunes folder and use that to restore everything after reformatting my hard drive. Everything restores EXCEPT the custom equalizer settings. Which file contains my custom EQ settings, and where is it found?

    Go to Edit>Preferences>Presets>Show Lightroom Presets Folder.
    These folders are usually (see below) actually in the same folder called 'Lightroom' where your catalog lives.
    If you back up the entire 'Lightroom' folder they should be there unless you have elected to put the folder elsewhere.
    Either way 'Show Lightroom Presets Folder' takes one there.
    You can copy and back it up seperately or as part of the greater 'ightroom folder' back up.
    Tony Jay

  • Where are Flash CS4 settings saved?

    Anyone know where Flash CS4 settings are saved [folder
    location]? Such as keyboard settings, preferences, commands, etc.?
    I want to be able to back them up and copy them to another PC.
    Thanks.

    Anyone know where Flash CS4 settings are saved [folder
    location]? Such as keyboard settings, preferences, commands, etc.?
    I want to be able to back them up and copy them to another PC.
    Thanks.

  • Try to find where are 3D conversion settings saved

    Hi,
    Is there any other way to change these settings, differs from "Edit->Preferences->Convert to PDF"? Maybe there are saved in file or into Windows registry? I'm a programmer and trying to simplify 3D conversion for my users. Thanks!
    Best regards, Dmitry

    I am dealing with a similar issue. I would like to save a backup copy of my customized 3D conversion settings. What directory does this write to?

  • Experts - where are the main settings for country currency settings

    Hi
    where are the main settings for different country currency settings.
    Ex:
    us,canada and europe customers us$, canada $, europe euro,
    How the pricing will effect for different country customers?
    Any one can help me on this.
    Any documents on thes please send to [email protected]
    Thanks
    Kris

    You can find this in the following path.
    SPRO->GENERAL SETTINGS> SET COUNTRIES>DEFINE COUNTRIES-->
    Here countries have an ISO CODE
    Then
    SPRO->GENERAL SETTINGS>CURRENCIES-->CHECK CURRENCY CODES
    Here ISO codes mapped to currencies.
    If CCode currency = Customer master currency, then transactions will happens in that currency
    If CCode currency<> Customer master currency, then the exchange rate will come into play to convert customer currency to company code currency.
    And anway if you want a different currency from the country currency, you can mention that in ccode configuration. The presence of currency in company code configuration is must and hence configuration at country level is not needed I think
    Hope this helps.
    Rewards pls
    Message was edited by:
            Navaneetha Krishnan

  • Where are all the settings stored?

    When working with Data Modeler users can setup a couple of preferences.
    E.g. windows size and position on desktop but others as well.
    Where are all these settings stored?
    Is it a file or in Win Registry?
    How can I backup these (current) settings?
    In addition I want to copy them onto another Data Modeler installation on another computer and use them over there as well.
    Do 32bit and 64bit version access the same settings values?
    Thank you
    Peter
    Edited by: user559463 on Nov 7, 2012 11:48 PM

    Hi,
    In Tools -> Preferences->Data Modeler there are import/export buttons.
    Use export to create file and import it on another computer.

  • How do I answer calls with the KITKAT update?  I hit the flashing button but it's still ringing?  Where are the Answer settings?

    How do I answer calls with the KITKAT update?  I hit the flashing button but it's still ringing?  Where are the Answer settings?

    Aha!  Thank you!!!  That was not obvious. Sometimes I don't get the green and red icons.  So it's slide it to the right for answering and slide to the left for voice mail.

  • Where are photos saved

    i just upgraded from 10.4 to 10.6.3 and successfully imported all my old documents to a new machine. i'm wondering where the iphoto library is saved in iphoto 9. in my old version, in the pictures folder, there was an iphoto library folder with all my pictures there. now, when i browse my hdd in the finder, there is an iphoto library icon that is non-browsable.
    when i look at a photo in iphoto and select "view in finder" then i can see the full ladder of folders within the iphoto library - but i am unable to do this when i am simply browsing in the finder.
    can anyone provide any help.
    thanks so much.

    There are a number of OS services to access your photos -you should not be accessing them directly via the finder
    click here for a discussion on the many correct and safe ways to access your iPhoto library photos.
    LN

  • Where are photo file names?

    I've "titled" many, many photos in iPhoto by changing the filename (e.g. "DSC_2254" --> "On vacation in Hawaii"), but there appears to be no option in Photos to show the filename. So none of my "titles" appear. Am I missing something?

    Léonie,
    As a further clarification, because this has huge implications for those of us that have "titled" thousands of photos in iPhoto, which are not carried over to the new Photos app:
    Here is an example of a photo to which I edited the filename (D7K_2242) in iPhoto:
    Note that the full title (which is actually the edited filename) appears in iPhoto.
    Here is the same photo as it appears in Photos in the Moments view:
    Here are my Metadata settings in Photos:
    So..
    --- Even when "titles" are turned on under Metadata
    --- and when in the Moments view in Photos
    The filename edited in iPhoto (="title") does not appear in Photos.
    I have discovered one way to remedy this, but it is NOT a practical remedy when you have thousands of "titled" photos in iPhoto with lots of albums, etc.
    --- In iPhoto: Select a photo, then: File -> Edit -> Export, with these settings:
    Any other settings for Kind (e.g., Original) will result in the title not carried over to Photos. Here's how the above export looks in Photos:
    As I said above, this is not a reasonable solution because among other things you can only export a file as a "jpeg" and not as an "Original", which was a "raw" file. So I guess off I go to report this as a "bug" to Apple.

  • Where are photo meta files kept?

    Where are the meta data files (if that is the correct term) kept for phots that are tagged, key worded, etc. in Phtoshop Elements 8. I screwed up my boot drive and had to re-install all programs. My photo dawere files are safe on another hard drive but I can't find any mycatalogfiles or equivalent on it nor in the image of my boot drive. Thanks for any assistance you all can provide. 

    The tags and other metadata are kept in the catalog file, and usually this is stored on the C: drive, unless you specifically moved it or created it on a different drive. For PSE8, the file name is *.pse8db. I do not know the default directory (maybe someone else can help), but you can use Windows to search for any file named *.pse8db (you might have to tell Windows to look in hidden directories). Good luck!
    If you meant to say you had to re-format the boot drive (you didn't actually say that, but its sort of implied), then your catalog file and the tags and other metadata are gone. I hope you practiced safe computing and made a backup!

  • Where are ethernet config settings stored?

    Anyone know where the ethernet config settings are stored in the system? I need to remotely adjust all of my clients to auto negotiate.
    Thanks!

    I found a command to make the adjustment:
    networksetup -setMedia en0 autoselect

  • Where are  previous icloud settings? - I just updated to 10.8.5

    Where did my iCloud settings go with the update to 10.5.8?  Signed on to locate my iPad and my iCloud settings to find my stuff are gone!

    Try resetting them in System Preferences/iCloud.

  • Where are Smart Mailbox settings?

    Hello
    I set up a large number of Smart Mailboxes on my Macbook and they synced over to my iMac. Now, however, they have disappeared from the Macbook and i am getting a prompt to delete them on the iMac when it tries to sync.
    Can anyone tell me where the Smart Mailbox settings are kept so I can copy it and let the sync happen and not have to recreated the whole thing?
    Thanks heaps
    deb

    They are in the /Home/Library/Mail/ folder:
    SmartMailboxes.plist
    SmartMailboxes.plist.backup
    VersionedSmartMailboxes.plist
    VersionedSmartMailboxes.plist.backup

  • Where are photos stored after backup

    I need to factory reset my iPhone 5 and was wondering if anyone could tell me where my photos are stored because I do not want to lose them in the process. I am working on a MacBook Pro.
    I would love it if I could even acess them and put them on other devices (without iCloud).

    You should be importing them to your computer regularly as you would with any digital camera.
    The backup is only for use in restoring an iphone.

  • Transferring photos from ipad2 to mac - where are photos?

    I took my ipad2 on vacation and used the camera connection kit (CCK?) to download my SD cards. (many people, many cameras)
    I used iPhoto to transfer my photos to my mac but can't find them anywhere except within iPhoto.
    On my pc, the photos are treated as individual files that you can move around, rearrange and duplicate.
    Where are the individual photos on my mac? Finder shows the images in iPhoto Library, but I can't manipulate it at all.

    You can export them out of iPhoto.
    file > export

Maybe you are looking for

  • Safari 4.1 crashing on startup on osx 10.4.11

    Hello, I know many people have already posted forum topics related to this but I've been through many of the suggested fixes and still can't seem to get my Safari working. Can anyone help me, please? I can't understand the crash report so if some cou

  • Oracle Forms client software license

    Hello All,      We are Gold Partners of Oracle.      Our customer has got licenses for the production.      Can we develop by downloading software from OTN and use it for developing applications for our customer?      Or do we need to purchase licens

  • CASE Question

    I have a case statement that pulls days, hours and minutes from a number that represents total minutes: CASE CAST(m.multi AS VARCHAR) WHEN '1' then CAST(m.elapsedtime/1440 as varchar(20)) + ':' + CAST(m.elapsedtime % 1440/60 as varchar(20)) + ':' + C

  • Thai support for web server

    Some of the Thai characters are not save correctly and when I try to enter the ?? characters , all of the data after this characters will be truncated.When I tested on IBM websphere test environment which comes together with Visual age 3.5 , it works

  • "Some files were skipped due to errors"

    I keep having this problem trying to get my photos into Revel.  I get this notification to try this great new program called Revel and I am supposed to be able to have unlimited storage. Except every time I try to move my photos I get the message, "