個人C/C++學習--(桌面背景操做)

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

void audio() { ShellExecuteA(0,    //0表明系統打開
        "open",            //操做 
        "notepad",       //操做的路徑
        0, 0,            // 四、5保留參數 默認爲0
        0); //6最小化 3最大化 1正常 0隱藏
 } void main() { SystemParametersInfoA(20,//用於設定桌面背景
        0,//默認的參數0
        "E:\\學習\\圖片\\jpg\\hzg5.jpg",//桌面的背景
        3);//馬上改變桌面
 system("pause"); }
相關文章
相關標籤/搜索