示例#1
0
        private static string GetWallpaper()
        {
            string lpvParam = new string(char.MinValue, 260);

            SEBDesktopWallpaper.SystemParametersInfo(115, lpvParam.Length, lpvParam, 0);
            return(lpvParam.Substring(0, lpvParam.IndexOf(char.MinValue)));
        }
示例#2
0
 private static void SetWallpaper(string path)
 {
     SEBDesktopWallpaper.SystemParametersInfo(20, 0, path, 3);
 }