Wow64RevertWow64FsRedirection function

Restores file system redirection for the calling thread.

This function should not be called without a previous call to the Wow64DisableWow64FsRedirectionfunction.

Any data allocation on behalf of the Wow64DisableWow64FsRedirection function is cleaned up by this function.

Syntax

BOOL Wow64RevertWow64FsRedirection(
  PVOID OlValue
);

Parameters

OlValue

TBD

Return Value

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is FALSE (zero). To get extended error information, call GetLastError.

Remarks

The Wow64DisableWow64FsRedirection/Wow64RevertWow64FsRedirection function pair is a replacement for the functionality of the Wow64EnableWow64FsRedirection function.

To disable file system redirection, call the

<a href="https://docs.microsoft.com/windows/desktop/api/wow64apiset/nf-wow64apiset-wow64disablewow64fsredirection">Wow64DisableWow64FsRedirection</a> function. Every call to the <b>Wow64DisableWow64FsRedirection</b> function must have a matching call to the 
<b>Wow64RevertWow64FsRedirection</b> 
function. This will ensure redirection is re-enabled and frees associated system resources.

In Windows 8 and Windows Server 2012, this function is supported by the following technologies.

Technology Supported
Server Message Block (SMB) 3.0 protocol No
SMB 3.0 Transparent Failover (TFO) No
SMB 3.0 with Scale-out File Shares (SO) No
Cluster Shared Volume File System (CsvFS) Yes
Resilient File System (ReFS) No
 

Examples

For an example, see the Wow64DisableWow64FsRedirection function.

Requirements

   
Minimum supported client Windows Vista, Windows XP Professional x64 Edition [desktop apps only]
Minimum supported server Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header wow64apiset.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

File Management Functions

File System Redirector

Wow64DisableWow64FsRedirection

Wow64EnableWow64FsRedirection