#include <stdio.h> 
#include <windows.h> int main(){
char fName[20];
HANDLE CreateFile(LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition,DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);HANDLE hFile;
printf("Enter the name:");
scanf("%s",fName);
hFile=CreateFile(fName,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);if(hFile==INVALLD_HEADLE_VALUE)
{
printf("Could not open file(error %d)\n",GetLastError());
scanf("%s",fName);
CloseHandle(hFile);
return 0;
}
scanf("%s",fName);
return 0;
}[Error] F:\c\用Creatfile保护木马.C:14: `INVALLD_HEADLE_VALUE' undeclared (first use this function)
[Error] F:\c\用Creatfile保护木马.C:14: (Each undeclared identifier is reported only once
[Error] F:\c\用Creatfile保护木马.C:14: for each function it appears in.)3 个错误, 0 个警告