SECCompressFile::SECCompressFile

Constructs a SECCompressFile object and opens the specified file.

Defined in: compfile.cpp

Syntax

SECCompressFile();

SECCompressFile( LPCTSTR lpszFileName, UINT nOpenFlags);

SECCompressFile( int hFile );

Parameters

lpszFileName

A string that is the path to the desired file. The path may be relative or absolute.

hFile

Handle of file to open.

nOpenFlags

Sharing and access mode. Specifies the action to take when opening the file. Note: modeReadWrite is mapped to modeWrite. ModeReadWrite is not supported by the compression code.

Comments

When a new file is created, it is opened in compresed mode and a 10-byte header is written to the file. This 10-byte header must be taken into account in subsequent file positioning commands.

See Also

SECCompressFile  Open  Seek