sw_common.c revision 0cf9e0860f5239b83ccd7fcae1e80a99d8e6aef1
/* $Id$ */
/** @file
* VBox D3D8/9 dll switcher
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* Sun Microsystems, Inc. confidential
* All rights reserved
*/
#include <windows.h>
#include "switcher.h"
/* Checks if 3D is enabled for VM and it works on host machine */
BOOL isVBox3DEnabled(void)
{
/* note: this isn't really needed as our library will refuse to load if it can't connect to host.
so it's in case we'd change it one day.
*/
if (pDrvValidateVersion)
{
result = pDrvValidateVersion(0);
}
return result;
}
BOOL checkOptions(void)
{
char name[1000];
int i;
return TRUE;
/*Extract filename*/
{
switch (*pName)
{
case ':':
case '\\':
case '/':
break;
}
}
for (i=0; gsBlackList[i]; ++i)
{
return FALSE;
}
return TRUE;
}
{
const char *dllName;
if (isVBox3DEnabled() && checkOptions())
{
} else
{
}
}