Struct FileSystemRedirection
File system redirection functions. Can temporarily disable redirection, to allow this 32-bit process access the 64-bit System32 directory.
Example: using (FileSystemRedirection r1 = new()) { r1.Disable(); ... }
.
public struct FileSystemRedirection : IDisposable
Namespace: Au.More
Assembly: Au.dll
Methods
Name | Description |
---|---|
Disable() | If osVersion.is32BitProcessAnd64BitOS, calls API Wow64DisableWow64FsRedirection, which disables file system redirection.
The caller can call this without checking OS and process bitness. This function checks it and it is fast.
Always call FileSystemRedirection.Revert or Dispose, for example use |
Dispose() | Calls FileSystemRedirection.Revert. |
GetNonRedirectedSystemPath(string, bool) | If osVersion.is32BitProcessAnd64BitOS is |
IsSystem64PathIn32BitProcess(string) | Returns |
Revert() | If redirected, calls API Wow64RevertWow64FsRedirection. |