FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Dobbs M-Dev
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
February 01, 2002

Creating a Better Installer

(Page 3 of 3)
February 2002/Creating a Better Installer

Example 1
Generating a protected files list

#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#include <sfc.h>

PROTECTED_FILE_DATA aFile = {0};
FILE *stream;

int main(int argc, char* argv[])
{
    BOOL res = true;
    long i=0;

    stream = fopen( "sfcfiles.txt", "w" );
    while (res)
    {    
        res = SfcGetNextProtectedFile (NULL, &aFile) ;
    if (res)
        fprintf(stream, "%S\n", aFile.FileName);
    }
    fclose (stream);
    return 0;
}
Previous Page | 1 | 2 | 3
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK