HostNetworkInterfaceImpl.h revision b77cd15f5cf027341f2a126e3659e16092e11dd5
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * VirtualBox COM class implementation
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Copyright (C) 2006-2008 Sun Microsystems, Inc.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * available from http://www.virtualbox.org. This file is free software;
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * General Public License (GPL) as published by the Free Software
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * additional information or have any questions.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync public VirtualBoxSupportErrorInfoImpl <HostNetworkInterface, IHostNetworkInterface>,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync public VirtualBoxSupportTranslation <HostNetworkInterface>,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (HostNetworkInterface)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync // public initializer/uninitializer for internal purposes only
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync // IHostNetworkInterface properties
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync // for VirtualBoxSupportErrorInfoImpl
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync static const wchar_t *getComponentName() { return L"HostNetworkInterface"; }
if (!name)
return E_INVALIDARG;
if (!networkInterface)
return E_POINTER;
Bstr n;
if (n == name)
++ it;
if (!found)
return E_INVALIDARG;
if (!networkInterface)
return E_POINTER;
Guid g;
++ it;
if (!found)