diff options
| author | Dave Wilson <[email protected]> | 2015-03-17 19:50:07 -0700 |
|---|---|---|
| committer | Dave Wilson <[email protected]> | 2015-03-17 19:50:07 -0700 |
| commit | 97cf5197cf5b882b2c689d8dc2b555f2edf8f418 (patch) | |
| tree | 46f3701832d70b420eb0fc0eb93261f9da45db3f /network/config/bindview/NetCfgAPI.h | |
| parent | ef1905bf1e8825bb31120dfb27e0daf3154d859a (diff) | |
Initial publish
Diffstat (limited to 'network/config/bindview/NetCfgAPI.h')
| -rw-r--r-- | network/config/bindview/NetCfgAPI.h | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/network/config/bindview/NetCfgAPI.h b/network/config/bindview/NetCfgAPI.h new file mode 100644 index 00000000..b4d6f552 --- /dev/null +++ b/network/config/bindview/NetCfgAPI.h @@ -0,0 +1,92 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 2001. +// +// File: N E T C F G A P I . H +// +// Contents: Functions Prototypes +// +// Notes: +// +// Author: Alok Sinha 15-May-01 +// +//---------------------------------------------------------------------------- + +#ifndef _NETCFGAPI_H_INCLUDED + +#define _NETCFGAPI_H_INCLUDED + + +#include <stdio.h> +#include <stdlib.h> +#include <windows.h> +#include <wchar.h> +#include <netcfgx.h> +#include <netcfgn.h> +#include <setupapi.h> +#include <devguid.h> +#include <objbase.h> +#include <strsafe.h> + +#define celems(_x) (sizeof(_x) / sizeof(_x[0])) + +#define LOCK_TIME_OUT 5000 + +HRESULT HrGetINetCfg (IN BOOL fGetWriteLock, + IN LPCWSTR lpszAppName, + OUT INetCfg** ppnc, + _Outptr_opt_result_maybenull_ LPWSTR *lpszLockedBy); + +HRESULT HrReleaseINetCfg (INetCfg* pnc, + BOOL fHasWriteLock); + +HRESULT HrInstallNetComponent (IN INetCfg *pnc, + IN LPCWSTR szComponentId, + IN const GUID *pguildClass, + IN LPCWSTR lpszInfFullPath); + +HRESULT HrInstallComponent(IN INetCfg* pnc, + IN LPCWSTR szComponentId, + IN const GUID* pguidClass); + +HRESULT HrUninstallNetComponent(IN INetCfg* pnc, + IN LPCWSTR szComponentId); + +HRESULT HrGetComponentEnum (INetCfg* pnc, + IN const GUID* pguidClass, + IEnumNetCfgComponent **ppencc); + +HRESULT HrGetFirstComponent (IEnumNetCfgComponent* pencc, + INetCfgComponent **ppncc); + +HRESULT HrGetNextComponent (IEnumNetCfgComponent* pencc, + INetCfgComponent **ppncc); + +HRESULT HrFindNetComponentByPnpId (IN INetCfg *pnc, + IN _In_ LPWSTR lpszPnpDevNodeId, + OUT INetCfgComponent **ppncc); + +HRESULT HrGetBindingPathEnum (INetCfgComponent *pncc, + DWORD dwBindingType, + IEnumNetCfgBindingPath **ppencbp); + +HRESULT HrGetFirstBindingPath (IEnumNetCfgBindingPath *pencbp, + INetCfgBindingPath **ppncbp); + +HRESULT HrGetNextBindingPath (IEnumNetCfgBindingPath *pencbp, + INetCfgBindingPath **ppncbp); + +HRESULT HrGetBindingInterfaceEnum (INetCfgBindingPath *pncbp, + IEnumNetCfgBindingInterface **ppencbi); + +HRESULT HrGetFirstBindingInterface (IEnumNetCfgBindingInterface *pencbi, + INetCfgBindingInterface **ppncbi); + +HRESULT HrGetNextBindingInterface (IEnumNetCfgBindingInterface *pencbi, + INetCfgBindingInterface **ppncbi); + +VOID ReleaseRef (IUnknown* punk); + +#endif + |
