VBoxNetAdpUninstall.cpp revision 2fa05a4e777b070ba9bf01e3dd46434c99cd06a3
/* $Id$ */
/** @file
* NetAdpUninstall - VBoxNetAdp uninstaller command line tool
*/
/*
* Copyright (C) 2009 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 <VBox/VBoxDrvCfg-win.h>
#include <stdio.h>
#include <devguid.h>
{
}
static int VBoxNetAdpUninstall()
{
int r = 1;
printf("uninstalling all Host-Only interfaces..\n");
{
{
hr = VBoxDrvCfgInfUninstallAllSetupDi(&GUID_DEVCLASS_NET, L"Net", L"sun_VBoxNetAdp", 0/* could be SUOI_FORCEDELETE */);
{
printf("uninstalled successfully\n");
}
else
{
printf("uninstalled successfully, but failed to remove infs\n");
}
r = 0;
}
else
{
}
}
else
{
}
return r;
}
{
return VBoxNetAdpUninstall();
}