FileImportEncryptedFileRaw Method (Stream, String, Boolean, PathFormat) |
[AlphaFS] Restores (import) encrypted files. This is one of a group of Encrypted File System (EFS) functions that is
intended to implement backup and restore functionality, while maintaining files in their encrypted state.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void ImportEncryptedFileRaw(
Stream inputStream,
string destinationFilePath,
bool overwriteHidden,
PathFormat pathFormat
)
Public Shared Sub ImportEncryptedFileRaw (
inputStream As Stream,
destinationFilePath As String,
overwriteHidden As Boolean,
pathFormat As PathFormat
)
public:
static void ImportEncryptedFileRaw(
Stream^ inputStream,
String^ destinationFilePath,
bool overwriteHidden,
PathFormat pathFormat
)
static member ImportEncryptedFileRaw :
inputStream : Stream *
destinationFilePath : string *
overwriteHidden : bool *
pathFormat : PathFormat -> unit
Parameters
- inputStream
- Type: System.IOStream
The stream to read previously backed up data from. - destinationFilePath
- Type: SystemString
The path of the destination file to restore to. - overwriteHidden
- Type: SystemBoolean
If set to a hidden file will be overwritten on import. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
The path format of the destinationFilePath parameter.
Remarks
If the caller does not have access to the key for the file, the caller needs
Backup to restore encrypted files. See
PrivilegeEnabler.
To restore an encrypted file call one of the
ImportEncryptedFileRaw Overload overloads and specify the file to restore
along with the destination stream of the restored data.
This function is intended for the restoration of only encrypted files; see BackupFileStream for
backup of unencrypted files.
See Also