5 #define INTERFACE INetCfgLock 19 #if !defined(__cplusplus) || defined(CINTERFACE) 21 #define INetCfgLock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 22 #define INetCfgLock_AddRef(p) (p)->lpVtbl->AddRef(p) 23 #define INetCfgLock_Release(p) (p)->lpVtbl->Release(p) 24 #define INetCfgLock_AcquireWriteLock(p,a,b,c) (p)->lpVtbl->AcquireWriteLock(p,a,b,c) 25 #define INetCfgLock_ReleaseWriteLock(p) (p)->lpVtbl->ReleaseWriteLock(p) 26 #define INetCfgLock_IsWriteLocked(p,a) (p)->lpVtbl->IsWriteLocked(p,a) 37 #define INTERFACE INetCfgComponent 58 #if !defined(__cplusplus) || defined(CINTERFACE) 60 #define INetCfgComponent_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 61 #define INetCfgComponent_AddRef(p) (p)->lpVtbl->AddRef(p) 62 #define INetCfgComponent_Release(p) (p)->lpVtbl->Release(p) 63 #define INetCfgComponent_GetDisplayName(p,a) (p)->lpVtbl->GetDisplayName(p,a) 64 #define INetCfgComponent_SetDisplayName(p,a) (p)->lpVtbl->SetDisplayName(p,a) 65 #define INetCfgComponent_GetHelpText(p,a) (p)->lpVtbl->GetHelpText(p,a) 66 #define INetCfgComponent_GetId(p,a) (p)->lpVtbl->GetId(p,a) 67 #define INetCfgComponent_GetCharacteristics(p,a) (p)->lpVtbl->GetCharacteristics(p,a) 68 #define INetCfgComponent_GetInstanceGuid(p,a) (p)->lpVtbl->GetInstanceGuid(p,a) 69 #define INetCfgComponent_GetPnpDevNodeId(p,a) (p)->lpVtbl->GetPnpDevNodeId(p,a) 70 #define INetCfgComponent_GetClassGuid(p,a) (p)->lpVtbl->GetClassGuid(p,a) 71 #define INetCfgComponent_GetBindName(p,a) (p)->lpVtbl->GetBindName(p,a) 72 #define INetCfgComponent_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) 73 #define INetCfgComponent_OpenParamKey(p,a) (p)->lpVtbl->OpenParamKey(p,a) 74 #define INetCfgComponent_RaisePropertyUi(p,a,b,c) (p)->lpVtbl->RaisePropertyUi(p,a,b,c) 80 #define INTERFACE INetCfgBindingInterface 93 #if !defined(__cplusplus) || defined(CINTERFACE) 95 #define INetCfgBindingInterface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 96 #define INetCfgBindingInterface_AddRef(p) (p)->lpVtbl->AddRef(p) 97 #define INetCfgBindingInterface_Release(p) (p)->lpVtbl->Release(p) 98 #define INetCfgBindingInterface_GetName(p,a) (p)->lpVtbl->GetName(p) 99 #define INetCfgBindingInterface_GetUpperComponent(p,a) (p)->lpVtbl->GetUpperComponent(p) 100 #define INetCfgBindingInterface_GetLowerComponent(p,a) (p)->lpVtbl->GetLowerComponent(p) 107 #define INTERFACE IEnumNetCfgBindingInterface 120 #if !defined(__cplusplus) || defined(CINTERFACE) 122 #define IEnumNetCfgBindingInterface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 123 #define IEnumNetCfgBindingInterface_AddRef(p) (p)->lpVtbl->AddRef(p) 124 #define IEnumNetCfgBindingInterface_Release(p) (p)->lpVtbl->Release(p) 125 #define IEnumNetCfgBindingInterface_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) 126 #define IEnumNetCfgBindingInterface_Skip(p,a) (p)->lpVtbl->Skip(p,a) 127 #define IEnumNetCfgBindingInterface_Reset(p) (p)->lpVtbl->Reset(p) 128 #define IEnumNetCfgBindingInterface_Clone(p,a) (p)->lpVtbl->Clone(p,a) 134 #define INTERFACE INetCfgBindingPath 150 #if !defined(__cplusplus) || defined(CINTERFACE) 152 #define INetCfgBindingPath_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 153 #define INetCfgBindingPath_AddRef(p) (p)->lpVtbl->AddRef(p) 154 #define INetCfgBindingPath_Release(p) (p)->lpVtbl->Release(p) 155 #define INetCfgBindingPath_IsSamePathAs(p,a) (p)->lpVtbl->IsSamePathAs(p,a) 156 #define INetCfgBindingPath_IsSubPathOf(p,a) (p)->lpVtbl->IsSubPathOf(p,a) 157 #define INetCfgBindingPath_IsEnabled(p) (p)->lpVtbl->IsEnabled(p) 158 #define INetCfgBindingPath_Enable(p,a) (p)->lpVtbl->Enable(p,a) 159 #define INetCfgBindingPath_GetPathToken(p,a) (p)->lpVtbl->GetPathToken(p,a) 160 #define INetCfgBindingPath_GetOwner(p,a) (p)->lpVtbl->GetOwner(p,a) 161 #define INetCfgBindingPath_GetDepth(p,a) (p)->lpVtbl->GetDepth(p,a) 162 #define INetCfgBindingPath_EnumBindingInterfaces(p,a) (p)->lpVtbl->EnumBindingInterfaces(p,a) 168 #define INTERFACE IEnumNetCfgBindingPath 181 #if !defined(__cplusplus) || defined(CINTERFACE) 183 #define IEnumNetCfgBindingPath_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 184 #define IEnumNetCfgBindingPath_AddRef(p) (p)->lpVtbl->AddRef(p) 185 #define IEnumNetCfgBindingPath_Release(p) (p)->lpVtbl->Release(p) 186 #define IEnumNetCfgBindingPath_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) 187 #define IEnumNetCfgBindingPath_Skip(p,a) (p)->lpVtbl->Skip(p,a) 188 #define IEnumNetCfgBindingPath_Reset(p) (p)->lpVtbl->Reset(p) 189 #define IEnumNetCfgBindingPath_Clone(p,a) (p)->lpVtbl->Clone(p,a) 207 #define INTERFACE INetCfgComponentBindings 224 #if !defined(__cplusplus) || defined(CINTERFACE) 226 #define INetCfgComponentBindings_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 227 #define INetCfgComponentBindings_AddRef(p) (p)->lpVtbl->AddRef(p) 228 #define INetCfgComponentBindings_Release(p) (p)->lpVtbl->Release(p) 229 #define INetCfgComponentBindings_BindTo(p,a) (p)->lpVtbl->BindTo(p,a) 230 #define INetCfgComponentBindings_UnbindFrom(p,a) (p)->lpVtbl->UnbindFrom(p,a) 231 #define INetCfgComponentBindings_SupportsBindingInterface(p,a,b) (p)->lpVtbl->UnbindFrom(p,a,b) 232 #define INetCfgComponentBindings_IsBoundTo(p,a) (p)->lpVtbl->IsBoundTo(p,a) 233 #define INetCfgComponentBindings_IsBindableTo(p,a) (p)->lpVtbl->IsBindableTo(p,a) 234 #define INetCfgComponentBindings_EnumBindingPaths(p,a,b) (p)->lpVtbl->EnumBindingPaths(p,a,b) 235 #define INetCfgComponentBindings_MoveBefore(p,a,b,c) (p)->lpVtbl->MoveBefore(p,a,b,c) 236 #define INetCfgComponentBindings_MoveAfter(p,a,b,c) (p)->lpVtbl->MoveAfter(p,a,b,c) 242 #define INTERFACE IEnumNetCfgComponent 255 #if !defined(__cplusplus) || defined(CINTERFACE) 257 #define IEnumNetCfgComponent_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 258 #define IEnumNetCfgComponent_AddRef(p) (p)->lpVtbl->AddRef(p) 259 #define IEnumNetCfgComponent_Release(p) (p)->lpVtbl->Release(p) 260 #define IEnumNetCfgComponent_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) 261 #define IEnumNetCfgComponent_Skip(p,a) (p)->lpVtbl->Skip(p,a) 262 #define IEnumNetCfgComponent_Reset(p) (p)->lpVtbl->Reset(p) 263 #define IEnumNetCfgComponent_Clone(p,a) (p)->lpVtbl->Clone(p,a) 269 #define INTERFACE INetCfg 285 #if !defined(__cplusplus) || defined(CINTERFACE) 287 #define INetCfg_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 288 #define INetCfg_AddRef(p) (p)->lpVtbl->AddRef(p) 289 #define INetCfg_Release(p) (p)->lpVtbl->Release(p) 290 #define INetCfg_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) 291 #define INetCfg_Uninitialize(p) (p)->lpVtbl->Uninitialize(p) 292 #define INetCfg_Apply(p) (p)->lpVtbl->Apply(p) 293 #define INetCfg_Cancel(p) (p)->lpVtbl->Cancel(p) 294 #define INetCfg_EnumComponents(p,a,b) (p)->lpVtbl->EnumComponents(p,a,b) 295 #define INetCfg_FindComponent(p,a,b) (p)->lpVtbl->FindComponent(p,a,b) 296 #define INetCfg_QueryNetCfgClass(p,a,b,c) (p)->lpVtbl->QueryNetCfgClass(p,a,b,c) 302 #define NETCFG_E_ALREADY_INITIALIZED 0x8004A020 303 #define NETCFG_E_NOT_INITIALIZED 0x8004A021 304 #define NETCFG_E_IN_USE 0x8004A022 305 #define NETCFG_E_NO_WRITE_LOCK 0x8004A024 306 #define NETCFG_E_NEED_REBOOT 0x8004A025 307 #define NETCFG_E_ACTIVE_RAS_CONNECTIONS 0x8004A026 308 #define NETCFG_E_ADAPTER_NOT_FOUND 0x8004A027 309 #define NETCFG_E_COMPONENT_REMOVED_PENDING_REBOOT 0x8004A028 310 #define NETCFG_E_MAX_FILTER_LIMIT 0x8004A029 311 #define NETCFG_S_REBOOT 0x8004A020 312 #define NETCFG_S_DISABLE_QUERY 0x8004A022 313 #define NETCFG_S_STILL_REFERENCED 0x8004A023 314 #define NETCFG_S_CAUSED_SETUP_CHANGE 0x8004A024 315 #define NETCFG_S_COMMIT_NOW 0x8004A025
EXTERN_C const IID IID_INetCfgLock
BOOL GetDisplayName(LPCTSTR ServiceName)
static HRESULT QueryInterface(REFIID, void **)
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
EXTERN_C const IID IID_IEnumNetCfgBindingPath
SUPPORTS_BINDING_INTERFACE_FLAGS
static CONFIGRET GetDeviceStatus(_In_ LPWSTR pszDeviceID, _Out_ DWORD *pulStatus, _Out_ DWORD *pulProblem)
VOID GetName(PUNICODE_STRING RegistryKey, PUNICODE_STRING OutName)
EXTERN_C const IID IID_INetCfg
EXTERN_C const GUID CLSID_CNetCfg
EXTERN_C const IID IID_INetCfgComponent
EXTERN_C const IID IID_INetCfgBindingPath
static LPCSTR DWORD void * pvReserved
EXTERN_C const IID IID_INetCfgBindingInterface
return pProvider IsEnabled(ProviderControl)
DECLARE_INTERFACE_(INetCfgLock, IUnknown)
static BOOL Uninitialize(LPCWSTR lpDriverPath)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
REFIID LPVOID * ppvObject
EXTERN_C const IID IID_INetCfgComponentBindings
BOOL Initialize(HINSTANCE hInstance)
EXTERN_C const IID IID_IEnumNetCfgComponent
static ULONG WINAPI AddRef(IStream *iface)
return deviceObject GetCharacteristics()
#define ReleaseWriteLock(t)
#define AcquireWriteLock(t)
EXTERN_C const IID IID_IEnumNetCfgBindingInterface