void __declspec(dllexport)MkFileAtter(AnsiString FileName)
{
int Attrs=FileGetAttr(FileName);
if(Attrs & !faHidden)
FileSetAttr(FileName,Attrs & faHidden);
if(Attrs & !faReadOnly)
FileSetAttr(FileName,Attrs & faReadOnly);
}
本文地址:http://com.8s8s.com/it/it29801.htm