有可能以编程方式发现它吗?它将使用 Windows 注册表吗?我需要截屏并与磁盘上的文件进行比较?即使在桌面幻灯片模式下也可以发现吗?
问问题
1326 次
4 回答
1
试试这个
using Microsoft.Win32;
private string GetCurrentWallpaper()
{
using(RegistryKey MyWallPaper = Registry.CurrentUser.OpenSubKey("Control Panel\\Desktop", false))
{
return MyWallPaper.GetValue("WallPaper").ToString();
}
}
再见。
于 2009-09-29T02:01:52.740 回答
1
public string GetCurrentWallpaper()
{
using(var subKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\Desktop\General", false))
{
return subKey.GetValue("WallpaperSource").ToString();
}
}
于 2009-10-04T21:18:07.090 回答
0
注册表项是HKCU\Control Panel\Desktop\Wallpaper
于 2009-09-29T02:00:41.790 回答
0
您需要使用 SystemParametersInfo() ,Geekpedia 上有一个教程,其中包含有关如何使用不同的 Windows 操作系统和系统完成此操作的更多信息。
于 2009-09-29T02:02:37.997 回答