This topic has not yet been rated - Rate this topic

Wow64RevertWow64FsRedirection function

Applies to: desktop apps only

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.

Examples

For an example, see the Wow64DisableWow64FsRedirection function.

Requirements

Minimum supported client

Windows Vista, Windows XP Professional x64 Edition

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

File Management Functions
File System Redirector
Wow64DisableWow64FsRedirection
Wow64EnableWow64FsRedirection

 

 

Send comments about this topic to Microsoft

Build date: 4/17/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ