win32file.DuplicateEncryptionInfoFile

DuplicateEncryptionInfoFile(SrcFileName, DstFileName, CreationDisposition, Attributes, SecurityAttributes)

Duplicates EFS encryption from one file to another

Parameters

SrcFileName : PyUnicode

Encrypted file to read EFS metadata from

DstFileName : PyUnicode

File to be encrypted using EFS data from source file

CreationDisposition : int

Specifies whether an existing file should be overwritten (CREATE_NEW or CREATE_ALWAYS)

Attributes : int

File attributes

SecurityAttributes=None : PySECURITY_ATTRIBUTES

Specifies security for destination file

Comments

Requires Windows XP or later

Accepts keyword arguments.

Win32 API References

Search for DuplicateEncryptionInfoFile at msdn, google or google groups.