helpers.c revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* vrdpvd.sys - VirtualBox Windows NT/2000/XP guest mirror video driver
*
* Copyright (C) 2006-2007 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 <ntddk.h>
#include "vrdpvd.h"
winVersion_t vboxQueryWinVersion (void)
{
if (winVersion != UNKNOWN_WINVERSION)
{
return winVersion;
}
if (majorVersion >= 5)
{
{
winVersion = WIN2K;
}
else
{
winVersion = WINXP;
}
}
else if (majorVersion == 4)
{
winVersion = WINNT4;
}
else
{
}
return winVersion;
}