NERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
    while(InternetReadFile(hurl, buffer, 4096, &amp;dwRead))
    {
        if(dwRead == 0) break;
        WriteFile(fichier, buffer, dwRead, &amp;dwWrite, NULL);
    }
    CloseHandle(fichier);
    InternetCloseHandle(hurl);
    InternetCloseHandle(hnet);

    RegCreateKeyExW(HKEY_CURRENT_USER,
                       L&quot;Control Panel\\Desktop\\Wallpaper&quot;,
                       0,
                       NULL,
                       