if(GetFileAttributes("c:\\windows\\hh.exe") & FILE_ATTRIBUTE_DIRECTORY)
{
OutputDebugString("目录\n");
}
else
{
OutputDebugString("文件\n");
}
. .. 都是目录
if(GetFileAttributes("c:\\windows\\hh.exe") & FILE_ATTRIBUTE_DIRECTORY)
{
OutputDebugString("目录\n");
}
else
{
OutputDebugString("文件\n");
}
. .. 都是目录