小编d65*_*65u的帖子

Windows 10 中的壁纸更改

此代码适用于 Windows 7,但不适用于 Windows 10。而不是更改壁纸只是黑屏

[DllImport("User32", CharSet = CharSet.Auto)]
    public static extern int SystemParametersInfo(int uiAction, int uiParam,
        string pvParam, uint fWinIni);
    static void Main(string[] args)
    {
        SystemParametersInfo(0x0014, 0, "Image.jpg", 0x0001);
    }
Run Code Online (Sandbox Code Playgroud)

c# wallpaper windows-10

0
推荐指数
1
解决办法
3005
查看次数

标签 统计

c# ×1

wallpaper ×1

windows-10 ×1