SECFileSystem::CopyFile

BOOLSECFileSystem::CopyFile(const CString&SourceFileName, const CString&DestFileName, const unsigned longlBuffSize= 10240)

Copies the contents of one file to another.

Defined in: filesys.cpp

Return Value

Nonzero if successful; 0 if an error occurred.

Parameters

SourceFileName

Name of the file to copy.

DestFileName

Name of the new file.

Example

BOOL bRetVal = fs.CopyFile("foo.txt", "a:\\bar.txt", 20480);

Developer Notes

If the destination file exists, an error occurs.

lBuffSize

Size of buffer to use when copying file data.

See Also

SECFileSystem  CopyFiles