Esempio n. 1
0
BOOL CFileMove::Wow64RevertWow64FsRedirection(PVOID OldValue)
{
	typedef BOOL (WINAPI *LPFN_Wow64RevertWow64FsRedirection)(PVOID); 
	LPFN_Wow64RevertWow64FsRedirection fnWow64RevertWow64FsRedirection;

	BOOL bReturn = FALSE;
	fnWow64RevertWow64FsRedirection = (LPFN_Wow64RevertWow64FsRedirection)
		GetProcAddress(GetModuleHandle(_T("kernel32")), "Wow64RevertWow64FsRedirection");
	if (NULL != fnWow64RevertWow64FsRedirection)
	{ 
		bReturn = fnWow64RevertWow64FsRedirection(OldValue);
	}

	return bReturn;
}
Esempio n. 2
0
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// LSRevertWow64FsRedirection
//
BOOL LSRevertWow64FsRedirection(PVOID pvOldValue)
{
    typedef BOOL (WINAPI* Wow64RevertWow64FsRedirectionProc)(PVOID);
    
    HMODULE hKernel32 = GetModuleHandle(_T("kernel32.dll"));
    
    Wow64RevertWow64FsRedirectionProc fnWow64RevertWow64FsRedirection =
        (Wow64RevertWow64FsRedirectionProc)GetProcAddress(
        hKernel32, "Wow64RevertWow64FsRedirection");
    
    BOOL bResult = TRUE;
    
    if (fnWow64RevertWow64FsRedirection)
    {
        bResult = fnWow64RevertWow64FsRedirection(pvOldValue);
    }
    
    return bResult;
}
Esempio n. 3
0
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// LSRevertWow64FsRedirection
//
BOOL LSRevertWow64FsRedirection(PVOID pvOldValue)
{
#ifndef _WIN64
    typedef BOOL (WINAPI* Wow64RevertWow64FsRedirectionProc)(PVOID);

    HMODULE hKernel32 = GetModuleHandle(_T("kernel32.dll"));

    Wow64RevertWow64FsRedirectionProc fnWow64RevertWow64FsRedirection =
        (Wow64RevertWow64FsRedirectionProc)GetProcAddress(
        hKernel32, "Wow64RevertWow64FsRedirection");

    BOOL bResult = TRUE;

    if (fnWow64RevertWow64FsRedirection)
    {
        bResult = fnWow64RevertWow64FsRedirection(pvOldValue);
    }

    return bResult;
#else
    UNREFERENCED_PARAMETER(pvOldValue);
    return TRUE;
#endif
}