VBoxMFDriver.cpp revision 59c511231e9864cb4ab5105e23e3e3617af92d34
/* $Id$ */
/** @file
* VBox Mouse filter interface functions
*/
/*
* 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 "VBoxMF.h"
#include <VBox/VBoxGuestLib.h>
#include <iprt/initterm.h>
#ifdef ALLOC_PRAGMA
#endif
/* Driver entry point */
{
PAGED_CODE();
if (RT_FAILURE(irc))
{
return STATUS_INTERNAL_ERROR;
}
LOGF_ENTER();
for (int i=0; i<=IRP_MJ_MAXIMUM_FUNCTION; ++i)
{
}
if (!NT_SUCCESS(tmpStatus))
{
}
LOGF_LEAVE();
return STATUS_SUCCESS;
}
{
PAGED_CODE();
LOGF_ENTER();
if (!NT_SUCCESS(tmpStatus))
{
}
RTR0Term();
}
#define VBOXUSB_RLTAG 'LRBV'
{
PAGED_CODE();
LOGF_ENTER();
if (!NT_SUCCESS(rc))
{
return rc;
}
if (!NT_SUCCESS(rc))
{
return rc;
}
if (!pDOParent)
{
WARN(("IoAttachDeviceToDeviceStack failed"));
return STATUS_DEVICE_NOT_CONNECTED;
}
LOGF_LEAVE();
return rc;
}
{
LOGF_ENTER();
LOGF_LEAVE();
}
static void
{
LOGF_ENTER();
LOGF_LEAVE();
}
{
LOGF_ENTER();
/* Hook into connection between mouse class device and port drivers */
{
{
WARN(("STATUS_SHARING_VIOLATION"));
}
{
WARN(("STATUS_INVALID_PARAMETER"));
}
PINTERNAL_MOUSE_CONNECT_DATA pData = (PINTERNAL_MOUSE_CONNECT_DATA) pStack->Parameters.DeviceIoControl.Type3InputBuffer;
}
LOGF_LEAVE();
}
{
LOGF_ENTER();
switch (pStack->MinorFunction)
{
case IRP_MN_REMOVE_DEVICE:
{
LOGF(("IRP_MN_REMOVE_DEVICE"));
break;
}
default:
{
break;
}
}
if (!NT_SUCCESS(rc))
{
}
LOGF_LEAVE();
return rc;
}