1
2
3
4
5
6
7
8
9
10
11
12
|
/// <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;
}
|