我的C/C++学习--(桌面背景操作)

#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>

void audio()
{
    ShellExecuteA(0,    //0代表系统打开
        "open",            //操作 
        "notepad",       //操作的路径
        0, 0,            // 4、5保留参数 默认为0
        0); //6最小化 3最大化 1正常 0隐藏

}


void main()
{
    SystemParametersInfoA(20,//用于设定桌面背景
        0,//默认的参数0
        "E:\\学习\\图片\\jpg\\hzg5.jpg",//桌面的背景
        3);//立刻改变桌面


    system("pause");
}

猜你喜欢

转载自www.cnblogs.com/seraphgabriel/p/9349826.html
今日推荐