VBoxMPVideoPortAPI.cpp revision 6fd13c2e3e855d7f5a7147cb0414af050e1503e6
/* $Id$ */
/** @file
* VBox XPDM Miniport video port api
*/
/*
* Copyright (C) 2011 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.
*/
#include "VBoxMPInternal.h"
/*Empty stubs*/
static VP_STATUS
vboxWaitForSingleObjectVoid(IN PVOID HwDeviceExtension, IN PVOID Object, IN PLARGE_INTEGER Timeout OPTIONAL)
{
WARN(("stub called"));
return ERROR_INVALID_FUNCTION;
}
{
WARN(("stub called"));
return 0;
}
{
WARN(("stub called"));
}
static VP_STATUS
vboxCreateEventVoid(IN PVOID HwDeviceExtension, IN ULONG EventFlag, IN PVOID Unused, OUT PEVENT *ppEvent)
{
WARN(("stub called"));
return ERROR_INVALID_FUNCTION;
}
static VP_STATUS
{
WARN(("stub called"));
return ERROR_INVALID_FUNCTION;
}
static PVOID
vboxAllocatePoolVoid(IN PVOID HwDeviceExtension, IN VBOXVP_POOL_TYPE PoolType, IN size_t NumberOfBytes, IN ULONG Tag)
{
WARN(("stub called"));
return NULL;
}
{
WARN(("stub called"));
}
static BOOLEAN
vboxQueueDpcVoid(IN PVOID HwDeviceExtension, IN PMINIPORT_DPC_ROUTINE CallbackRoutine, IN PVOID Context)
{
WARN(("stub called"));
return FALSE;
}
static VBOXVP_STATUS
vboxCreateSecondaryDisplayVoid(IN PVOID HwDeviceExtension, IN OUT PVOID SecondaryDeviceExtension, IN ULONG ulFlag)
{
WARN(("stub called"));
return ERROR_INVALID_FUNCTION;
}
{ \
}
/*Query video port for api functions or fill with stubs if those are not supported*/
{
if (VBoxQueryWinVersion() <= WINVERSION_NT4)
{
/* VideoPortGetProcAddress is available for >= win2k */
return;
}
&& pAPI->pfnSetEvent
&& pAPI->pfnClearEvent
&& pAPI->pfnCreateEvent
&& pAPI->pfnDeleteEvent)
{
}
else
{
}
if(pAPI->pfnAllocatePool
&& pAPI->pfnFreePool)
{
}
else
{
}
if(pAPI->pfnQueueDpc)
{
}
else
{
}
VP_GETPROC(pfnCreateSecondaryDisplay, PFNCREATESECONDARYDISPLAY, "VideoPortCreateSecondaryDisplay");
{
}
else
{
}
}