Wow64RevertWow64FsRedirection function (wow64apiset.h)

Restores file system redirection for the calling thread.

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

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

Syntax

BOOL Wow64RevertWow64FsRedirection(
  [in] PVOID OlValue
);

Parameters

[in] OlValue

The WOW64 file system redirection value. This value is obtained from the Wow64DisableWow64FsRedirection function.

This value is defined in wow64apiset.h.

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 Wow64DisableWow64FsRedirection function. Every call to the Wow64DisableWow64FsRedirection function must have a matching call to the Wow64RevertWow64FsRedirection 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

Requirement Value
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