[C#]Get current wallpaper directory[snipper]

Reputation
0
Code:
/// <summary>
/// Gets the current wallpaper path.
/// </summary>
/// <returns>the wallpaper path</returns>
private static string GetCurrentWallpaperPath()
{
    RegistryKey wallPaper = Registry.CurrentUser.OpenSubKey("Control Panel\\Desktop", false);
    string WallpaperPath = wallPaper.GetValue("WallPaper").ToString();
    wallPaper.Close();
    return WallpaperPath;
}

Like my past few threads, idk who wrote these, I had them saved to text docs.
 
Thing about VB is that it looks like each line of code is like 3 sentences.
 
Back
Top