예제 #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);
 }