Expand Minimize

Wow64RevertWow64FsRedirection function

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 WINAPI Wow64RevertWow64FsRedirection(
  _In_  PVOID OldValue
);

Parameters

OldValue [in]

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

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.

TechnologySupported

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]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

File Management Functions
File System Redirector
Wow64DisableWow64FsRedirection
Wow64EnableWow64FsRedirection

 

 

Community Additions

ADD
Show:
© 2014 Microsoft