VBoxNetFltUninstall.cpp revision c58f1213e628a545081c70e26c6b67a841cff880
/* $Id$ */
/** @file
* NetFltUninstall - VBoxNetFlt uninstaller command line tool
*/
/*
* 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 <VBox/VBoxNetCfg-win.h>
#include <stdio.h>
#define NETFLT_ID L"sun_VBoxNetFlt"
#define VBOX_NETCFG_APP_NAME L"NetFltUninstall"
#define VBOX_NETFLT_PT_INF L".\\VBoxNetFlt.inf"
#define VBOX_NETFLT_MP_INF L".\\VBoxNetFltM.inf"
#define VBOX_NETFLT_RETRIES 10
{
}
static int VBoxNetFltUninstall()
{
int r;
{
int i = 0;
do
{
{
{
r = 1;
}
else
{
wprintf(L"uninstalled successfully\n");
r = 0;
}
break;
}
{
{
}
else
{
wprintf(L"Error: write lock is owned by another application (%s), close the application and retry uninstalling\n", lpszLockedBy);
r = 1;
break;
}
}
else
{
r = 1;
break;
}
} while(true);
}
else
{
r = 1;
}
return r;
}
{
return VBoxNetFltUninstall();
}