//FILE ENUM
#define CS_File_modeRead 0x00000
#define CS_File_modeWrite 0x00001
#define CS_File_modeReadWrite 0x00002
#define CS_File_shareExclusive 0x00010
#define CS_File_shareDenyWrite 0x00020
#define CS_File_shareDenyRead 0x00030
#define CS_File_shareDenyNone 0x00040
#define CS_File_modeCreate 0x01000
#define CS_File_typeText 0x04000
#define CS_File_typeBinary 0x08000
#import( class , CS_File )
#import( class , CS_Buffer )
CS_WEB_SCRIPT this = new CS_WEB_SCRIPT($_this);
void html()
{
CS_File filename = new CS_File();
this->MD5StartStream();
if (filename->Open("F:\\sorgenti\\caronteantispam\\2.0\\Release\\CaronteAntispamKrn.exe", CS_File_modeRead + CS_File_typeBinary ))
{
CS_Buffer buffer = new CS_Buffer();
buffer->Allocate(4096);
while(1)
{
int size = filename->Read(buffer->GetBuffer());
if (size > 0)
this->MD5UpdateStreamB( buffer->GetPointer(), size );
else
break;
}
delete buffer;
}
filename->Close();
delete filename;
this->Echo(this->MD5FinalStream());
}
|