DirectoryImportEncryptedDirectoryRaw Method (Stream, String, Boolean) |
[AlphaFS] Restores (import) encrypted directories. 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.2
Syntax public static void ImportEncryptedDirectoryRaw(
Stream inputStream,
string destinationPath,
bool overwriteHidden
)
Public Shared Sub ImportEncryptedDirectoryRaw (
inputStream As Stream,
destinationPath As String,
overwriteHidden As Boolean
)
public:
static void ImportEncryptedDirectoryRaw(
Stream^ inputStream,
String^ destinationPath,
bool overwriteHidden
)
static member ImportEncryptedDirectoryRaw :
inputStream : Stream *
destinationPath : string *
overwriteHidden : bool -> unit
Parameters
- inputStream
- Type: System.IOStream
The stream to read previously backed up data from. - destinationPath
- Type: SystemString
The path of the destination directory to restore to. - overwriteHidden
- Type: SystemBoolean
If set to a hidden directory will be overwritten on import.
Remarks If the caller does not have access to the key for the directory, the caller needs Backup to restore encrypted directories. See PrivilegeEnabler.
To restore an encrypted directory call one of the ImportEncryptedDirectoryRaw 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 directories; see BackupFileStream for backup of unencrypted files.
See Also