01 //Code Tested on Windows 2000
02 //By Smith
03 #include
04 #include
05
06 int APIENTRY WinMain(HINSTANCE hInstance,
07 HINSTANCE hPrevInstance,
08 LPSTR lpCmdLine,
09 int nShowCmd)
10 {
11 HKEY hKey;
12
13 unsigned char NewDesktop[24] = "Picture File Goes Here"; //Example "C:\\picture.jpg";
14
15 RegOpenKeyEx(HKEY_CURRENT_USER,"Control Panel\\Desktop",0,KEY_SET_VALUE,&hKey);
16 RegSetValueEx(hKey,"Wallpaper",0,REG_SZ,NewDesktop,sizeof(NewDesktop));
17 RegCloseKey(hKey);
18
19 return(0);
20 }
Wyszukiwarka
Podobne podstrony:
function mcal event set end
function pdf set horiz scaling
function ldap set option
Patons Grace Daisies and Stripes Set with Blanket
function pdf set info subject
The Complete Pentium Instruction Set Table (32 Bit Addressing Mode Only)
function cpdf set viewer preferences
set home location
function ftp set option
function com set
function cpdf global set document limits
function stream set write buffer
function mcal event set alarm
set quest var part
function pdf set info title
set your location
więcej podobnych podstron