VBoxDispMpTst.cpp revision 3448d69ec2f383fbcb48c0c8e395cd8661103c3c
/** @file
*
* VBoxVideo Display D3D User mode dll
*
* Copyright (C) 2010 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 "VBoxDispMp.h"
#include "VBoxDispD3DCmn.h"
#include "VBoxDispProfile.h"
static RTTHREAD g_VBoxDispMpTstThread;
static HMODULE g_hVBoxDispMpModule;
{
vboxVDbgPrint(("%s left(%d), top(%d), right(%d), bottom(%d) %s", pPrefix, pRect->left, pRect->top, pRect->right, pRect->bottom, pSuffix));
}
{
return VERR_GENERAL_FAILURE;
do
{
{
vboxVDbgPrint(("\n>>>\n"));
{
uint32_t iVisibleRects = 0;
{
iVisibleRects = 1;
}
{
}
}
{
{
}
}
vboxVDbgPrint(("\n<<<\n"));
}
} while (1);
return VINF_SUCCESS;
}
{
if (g_hVBoxDispMpModule)
{
g_pfnVBoxDispMpGetCallbacks = (PFNVBOXDISPMP_GETCALLBACKS)GetProcAddress(g_hVBoxDispMpModule, "VBoxDispMpGetCallbacks");
{
{
if (RT_SUCCESS(rc))
return S_OK;
}
}
}
return hr;
}
{
#if 0
{
if (RT_SUCCESS(rc))
{
#ifdef DEBUG
if (!bResult)
{
}
#endif
}
else
}
#endif
return hr;
}
{
if (RT_SUCCESS(rc))
{
do
{
void *pvLock;
if (!RT_SUCCESS(rc))
break;
if (!RT_SUCCESS(rc))
break;
if (!RT_SUCCESS(rc))
break;
if (dw)
break;
} while (--cNumCals);
}
return rc;
}