SysHlp.h revision f51668f672f695a50aac3c160e4277e5c1069375
/** @file
*
* VBoxGuestLib - A support library for VirtualBox guest additions:
* System dependent helpers internal header
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* 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.
*/
#ifndef __SYSHLP__H
#define __SYSHLP__H
#ifdef RT_OS_WINDOWS
# include <ntddk.h>
# else
# include <ntddk.h>
# endif
/* XP DDK #defines ExFreePool to ExFreePoolWithTag. The latter does not exist on NT4, so...
* The same for ExAllocatePool.
*/
#endif
typedef struct _VBGLDRIVER
{
#ifdef RT_OS_WINDOWS
#elif defined (RT_OS_LINUX)
void *opaque;
#elif defined (RT_OS_SOLARIS)
void *pvOpaque;
#else
# error "Port me"
#endif
} VBGLDRIVER;
#ifndef VBGL_VBOXGUEST
/**
* Open VBoxGuest driver.
*
* @param pDriver Pointer to the driver structure.
*
* @return VBox error code
*/
/**
* Call VBoxGuest driver.
*
* @param pDriver Pointer to the driver structure.
* @param u32Function Function code.
* @param cbData Size of data buffer.
*
* @return VBox error code
*/
/**
* Close VBoxGuest driver.
*
* @param pDriver Pointer to the driver structure.
*
* @return VBox error code
*/
#endif
#endif /* __SYSHLP__H */