/* $Id$ */
/** @file
* VirtualBox Windows Guest Shared Folders - Windows 2000 Hacks.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "vbsf.h"
#if 0
/*
* FsRtlTeardownPerStreamContexts.
*/
static volatile PFN_FSRTLTEARDOWNPERSTREAMCONTEXTS g_pfnFsRtlTeardownPerStreamContexts = Resolve_FsRtlTeardownPerStreamContexts;
static VOID __stdcall Fake_FsRtlTeardownPerStreamContexts(PFSRTL_ADVANCED_FCB_HEADER pAdvancedHeader)
{
{
}
return;
}
static VOID __stdcall Resolve_FsRtlTeardownPerStreamContexts(PFSRTL_ADVANCED_FCB_HEADER pAdvancedHeader)
{
if (!pfn)
}
{
Log(("FsRtlTeardownPerStreamContexts: returns\n"));
}
#endif
/*
* RtlGetVersion
*/
{
{
Log(("Fake_RtlGetVersion: -> STATUS_INVALID_PARAMETER (size = %#x)\n", pVerInfo->dwOSVersionInfoSize));
return STATUS_INVALID_PARAMETER;
}
/* Report Windows 2000 w/o SP. */
pVerInfo->dwMinorVersion = 0;
{
pVerInfoEx->wServicePackMajor = 0;
pVerInfoEx->wServicePackMinor = 0;
pVerInfoEx->wSuiteMask = 0;
pVerInfoEx->wReserved = 0;
}
return STATUS_SUCCESS;
}
{
if (!pfn)
}
{
return g_pfnRtlGetVersion(pVerInfo);
}
/*
* PsGetProcessImageFileName
*/
static volatile PFNPSGETPROCESSIMAGEFILENAME g_pfnPsGetProcessImageFileName = Resolve_PsGetProcessImageFileName;
{
return "Fake_PsGetProcessImageFileName";
}
{
if (!pfn)
}
{
return g_pfnPsGetProcessImageFileName(pProcess);
}