Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygennetcfgx.h
Go to the documentation of this file.
00001 #ifndef __NETCFGX_H__ 00002 #define __NETCFGX_H__ 00003 00004 #undef INTERFACE 00005 #define INTERFACE INetCfgLock 00006 DECLARE_INTERFACE_(INetCfgLock, IUnknown) 00007 { 00008 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00009 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00010 STDMETHOD_(ULONG,Release) (THIS) PURE; 00011 STDMETHOD_(HRESULT,AcquireWriteLock)(THIS_ DWORD cmsTimeout, LPCWSTR pszwClientDescription, LPWSTR *ppszwClientDescription) PURE; 00012 STDMETHOD_(HRESULT,ReleaseWriteLock)(THIS) PURE; 00013 STDMETHOD_(HRESULT,IsWriteLocked)(THIS_ LPWSTR *ppszwClientDescription) PURE; 00014 }; 00015 #undef INTERFACE 00016 00017 EXTERN_C const IID IID_INetCfgLock; 00018 00019 #if !defined(__cplusplus) || defined(CINTERFACE) 00020 /*** IUnknown methods ***/ 00021 #define INetCfgLock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00022 #define INetCfgLock_AddRef(p) (p)->lpVtbl->AddRef(p) 00023 #define INetCfgLock_Release(p) (p)->lpVtbl->Release(p) 00024 #define INetCfgLock_AcquireWriteLock(p,a,b,c) (p)->lpVtbl->AcquireWriteLock(p,a,b,c) 00025 #define INetCfgLock_ReleaseWriteLock(p) (p)->lpVtbl->ReleaseWriteLock(p) 00026 #define INetCfgLock_IsWriteLocked(p,a) (p)->lpVtbl->IsWriteLocked(p,a) 00027 #endif 00028 00029 typedef enum 00030 { 00031 NCRP_QUERY_PROPERTY_UI = 1, 00032 NCRP_SHOW_PROPERTY_UI = 2 00033 }NCRP_FLAGS; 00034 00035 00036 #undef INTERFACE 00037 #define INTERFACE INetCfgComponent 00038 DECLARE_INTERFACE_(INetCfgComponent, IUnknown) 00039 { 00040 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00041 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00042 STDMETHOD_(ULONG,Release) (THIS) PURE; 00043 STDMETHOD_(HRESULT,GetDisplayName)(THIS_ LPWSTR *ppszwDisplayName) PURE; 00044 STDMETHOD_(HRESULT,SetDisplayName)(THIS_ LPCWSTR ppszwDisplayName) PURE; 00045 STDMETHOD_(HRESULT,GetHelpText)(THIS_ LPWSTR *pszwHelpText) PURE; 00046 STDMETHOD_(HRESULT,GetId)(THIS_ LPWSTR *ppszwId) PURE; 00047 STDMETHOD_(HRESULT,GetCharacteristics)(THIS_ LPDWORD pdwCharacteristics) PURE; 00048 STDMETHOD_(HRESULT,GetInstanceGuid)(THIS_ GUID *pGuid) PURE; 00049 STDMETHOD_(HRESULT,GetPnpDevNodeId)(THIS_ LPWSTR *ppszwDevNodeId) PURE; 00050 STDMETHOD_(HRESULT,GetClassGuid)(THIS_ GUID *pGuid) PURE; 00051 STDMETHOD_(HRESULT,GetBindName)(THIS_ LPWSTR *ppszwBindName) PURE; 00052 STDMETHOD_(HRESULT,GetDeviceStatus)(THIS_ ULONG *pulStatus) PURE; 00053 STDMETHOD_(HRESULT,OpenParamKey)(THIS_ HKEY *phkey) PURE; 00054 STDMETHOD_(HRESULT,RaisePropertyUi)(THIS_ HWND hwndParent, DWORD dwFlags, IUnknown *punkContext) PURE; 00055 }; 00056 #undef INTERFACE 00057 00058 #if !defined(__cplusplus) || defined(CINTERFACE) 00059 /*** IUnknown methods ***/ 00060 #define INetCfgComponent_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00061 #define INetCfgComponent_AddRef(p) (p)->lpVtbl->AddRef(p) 00062 #define INetCfgComponent_Release(p) (p)->lpVtbl->Release(p) 00063 #define INetCfgComponent_GetDisplayName(p,a) (p)->lpVtbl->GetDisplayName(p,a) 00064 #define INetCfgComponent_SetDisplayName(p,a) (p)->lpVtbl->SetDisplayName(p,a) 00065 #define INetCfgComponent_GetHelpText(p,a) (p)->lpVtbl->GetHelpText(p,a) 00066 #define INetCfgComponent_GetId(p,a) (p)->lpVtbl->GetId(p,a) 00067 #define INetCfgComponent_GetCharacteristics(p,a) (p)->lpVtbl->GetCharacteristics(p,a) 00068 #define INetCfgComponent_GetInstanceGuid(p,a) (p)->lpVtbl->GetInstanceGuid(p,a) 00069 #define INetCfgComponent_GetPnpDevNodeId(p,a) (p)->lpVtbl->GetPnpDevNodeId(p,a) 00070 #define INetCfgComponent_GetClassGuid(p,a) (p)->lpVtbl->GetClassGuid(p,a) 00071 #define INetCfgComponent_GetBindName(p,a) (p)->lpVtbl->GetBindName(p,a) 00072 #define INetCfgComponent_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) 00073 #define INetCfgComponent_OpenParamKey(p,a) (p)->lpVtbl->OpenParamKey(p,a) 00074 #define INetCfgComponent_RaisePropertyUi(p,a,b,c) (p)->lpVtbl->RaisePropertyUi(p,a,b,c) 00075 #endif 00076 00077 EXTERN_C const IID IID_INetCfgComponent; 00078 00079 #undef INTERFACE 00080 #define INTERFACE INetCfgBindingInterface 00081 DECLARE_INTERFACE_(INetCfgBindingInterface, IUnknown) 00082 { 00083 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00084 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00085 STDMETHOD_(ULONG,Release) (THIS) PURE; 00086 STDMETHOD_(HRESULT,GetName)(THIS_ LPWSTR *ppszwInterfaceName) PURE; 00087 STDMETHOD_(HRESULT,GetUpperComponent)(THIS_ INetCfgComponent **ppnccItem) PURE; 00088 STDMETHOD_(HRESULT,GetLowerComponent)(THIS_ INetCfgComponent **ppnccItem) PURE; 00089 }; 00090 #undef INTERFACE 00091 00092 00093 #if !defined(__cplusplus) || defined(CINTERFACE) 00094 /*** IUnknown methods ***/ 00095 #define INetCfgBindingInterface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00096 #define INetCfgBindingInterface_AddRef(p) (p)->lpVtbl->AddRef(p) 00097 #define INetCfgBindingInterface_Release(p) (p)->lpVtbl->Release(p) 00098 #define INetCfgBindingInterface_GetName(p,a) (p)->lpVtbl->GetName(p) 00099 #define INetCfgBindingInterface_GetUpperComponent(p,a) (p)->lpVtbl->GetUpperComponent(p) 00100 #define INetCfgBindingInterface_GetLowerComponent(p,a) (p)->lpVtbl->GetLowerComponent(p) 00101 #endif 00102 00103 EXTERN_C const IID IID_INetCfgBindingInterface; 00104 00105 00106 #undef INTERFACE 00107 #define INTERFACE IEnumNetCfgBindingInterface 00108 DECLARE_INTERFACE_(IEnumNetCfgBindingInterface, IUnknown) 00109 { 00110 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00111 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00112 STDMETHOD_(ULONG,Release) (THIS) PURE; 00113 STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, INetCfgBindingInterface **rgelt, ULONG *pceltFetched) PURE; 00114 STDMETHOD_(HRESULT,Skip) (THIS_ ULONG celt) PURE; 00115 STDMETHOD_(HRESULT,Reset) (THIS) PURE; 00116 STDMETHOD_(HRESULT,Clone) (THIS_ IEnumNetCfgBindingInterface **ppenum) PURE; 00117 }; 00118 #undef INTERFACE 00119 00120 #if !defined(__cplusplus) || defined(CINTERFACE) 00121 /*** IUnknown methods ***/ 00122 #define IEnumNetCfgBindingInterface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00123 #define IEnumNetCfgBindingInterface_AddRef(p) (p)->lpVtbl->AddRef(p) 00124 #define IEnumNetCfgBindingInterface_Release(p) (p)->lpVtbl->Release(p) 00125 #define IEnumNetCfgBindingInterface_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) 00126 #define IEnumNetCfgBindingInterface_Skip(p,a) (p)->lpVtbl->Skip(p,a) 00127 #define IEnumNetCfgBindingInterface_Reset(p) (p)->lpVtbl->Reset(p) 00128 #define IEnumNetCfgBindingInterface_Clone(p,a) (p)->lpVtbl->Clone(p,a) 00129 #endif 00130 00131 EXTERN_C const IID IID_IEnumNetCfgBindingInterface; 00132 00133 #undef INTERFACE 00134 #define INTERFACE INetCfgBindingPath 00135 DECLARE_INTERFACE_(INetCfgBindingPath, IUnknown) 00136 { 00137 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00138 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00139 STDMETHOD_(ULONG,Release) (THIS) PURE; 00140 STDMETHOD_(HRESULT,IsSamePathAs)(THIS_ INetCfgBindingPath *pPath) PURE; 00141 STDMETHOD_(HRESULT,IsSubPathOf)(THIS_ INetCfgBindingPath *pPath) PURE; 00142 STDMETHOD_(HRESULT,IsEnabled) (THIS) PURE; 00143 STDMETHOD_(HRESULT,Enable) (THIS_ BOOL fEnable) PURE; 00144 STDMETHOD_(HRESULT,GetPathToken) (THIS_ LPWSTR *ppszwPathToken) PURE; 00145 STDMETHOD_(HRESULT,GetOwner)(THIS_ INetCfgComponent **ppComponent) PURE; 00146 STDMETHOD_(HRESULT,GetDepth)(THIS_ ULONG *pcInterfaces) PURE; 00147 STDMETHOD_(HRESULT,EnumBindingInterfaces)(THIS_ IEnumNetCfgBindingInterface **ppenumInterface) PURE; 00148 }; 00149 00150 #if !defined(__cplusplus) || defined(CINTERFACE) 00151 /*** IUnknown methods ***/ 00152 #define INetCfgBindingPath_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00153 #define INetCfgBindingPath_AddRef(p) (p)->lpVtbl->AddRef(p) 00154 #define INetCfgBindingPath_Release(p) (p)->lpVtbl->Release(p) 00155 #define INetCfgBindingPath_IsSamePathAs(p,a) (p)->lpVtbl->IsSamePathAs(p,a) 00156 #define INetCfgBindingPath_IsSubPathOf(p,a) (p)->lpVtbl->IsSubPathOf(p,a) 00157 #define INetCfgBindingPath_IsEnabled(p) (p)->lpVtbl->IsEnabled(p) 00158 #define INetCfgBindingPath_Enable(p,a) (p)->lpVtbl->Enable(p,a) 00159 #define INetCfgBindingPath_GetPathToken(p,a) (p)->lpVtbl->GetPathToken(p,a) 00160 #define INetCfgBindingPath_GetOwner(p,a) (p)->lpVtbl->GetOwner(p,a) 00161 #define INetCfgBindingPath_GetDepth(p,a) (p)->lpVtbl->GetDepth(p,a) 00162 #define INetCfgBindingPath_EnumBindingInterfaces(p,a) (p)->lpVtbl->EnumBindingInterfaces(p,a) 00163 #endif 00164 00165 EXTERN_C const IID IID_INetCfgBindingPath; 00166 00167 #undef INTERFACE 00168 #define INTERFACE IEnumNetCfgBindingPath 00169 DECLARE_INTERFACE_(IEnumNetCfgBindingPath, IUnknown) 00170 { 00171 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00172 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00173 STDMETHOD_(ULONG,Release) (THIS) PURE; 00174 STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, INetCfgBindingPath **rgelt, ULONG *pceltFetched) PURE; 00175 STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; 00176 STDMETHOD_(HRESULT,Reset)(THIS) PURE; 00177 STDMETHOD_(HRESULT,Clone)(THIS_ IEnumNetCfgBindingPath **ppenum) PURE; 00178 }; 00179 #undef INTERFACE 00180 00181 #if !defined(__cplusplus) || defined(CINTERFACE) 00182 /*** IUnknown methods ***/ 00183 #define IEnumNetCfgBindingPath_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00184 #define IEnumNetCfgBindingPath_AddRef(p) (p)->lpVtbl->AddRef(p) 00185 #define IEnumNetCfgBindingPath_Release(p) (p)->lpVtbl->Release(p) 00186 #define IEnumNetCfgBindingPath_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) 00187 #define IEnumNetCfgBindingPath_Skip(p,a) (p)->lpVtbl->Skip(p,a) 00188 #define IEnumNetCfgBindingPath_Reset(p) (p)->lpVtbl->Reset(p) 00189 #define IEnumNetCfgBindingPath_Clone(p,a) (p)->lpVtbl->Clone(p,a) 00190 #endif 00191 00192 EXTERN_C const IID IID_IEnumNetCfgBindingPath; 00193 00194 typedef enum 00195 { 00196 NCF_LOWER = 0x1, 00197 NCF_UPPER = 0x2 00198 }SUPPORTS_BINDING_INTERFACE_FLAGS; 00199 00200 typedef enum 00201 { 00202 EBP_ABOVE = 0x1, 00203 EBP_BELOW = 0x2 00204 }ENUM_BINDING_PATHS_FLAGS; 00205 00206 #undef INTERFACE 00207 #define INTERFACE INetCfgComponentBindings 00208 DECLARE_INTERFACE_(INetCfgComponentBindings, IUnknown) 00209 { 00210 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00211 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00212 STDMETHOD_(ULONG,Release) (THIS) PURE; 00213 STDMETHOD_(HRESULT,BindTo)(THIS_ INetCfgComponent *pnccItem) PURE; 00214 STDMETHOD_(HRESULT,UnbindFrom)(THIS_ INetCfgComponent *pnccItem) PURE; 00215 STDMETHOD_(HRESULT,SupportsBindingInterface)(THIS_ DWORD dwFlags, LPCWSTR pszwInterfaceName) PURE; 00216 STDMETHOD_(HRESULT,IsBoundTo)(THIS_ INetCfgComponent *pnccItem) PURE; 00217 STDMETHOD_(HRESULT,IsBindableTo)(THIS_ INetCfgComponent *pnccItem) PURE; 00218 STDMETHOD_(HRESULT,EnumBindingPaths)(THIS_ DWORD dwFlags, IEnumNetCfgBindingPath **ppIEnum) PURE; 00219 STDMETHOD_(HRESULT,MoveBefore)(THIS_ DWORD dwFlags, INetCfgBindingPath *pncbItemSrc, INetCfgBindingPath *pncbItemDest) PURE; 00220 STDMETHOD_(HRESULT,MoveAfter)(THIS_ DWORD dwFlags, INetCfgBindingPath *pncbItemSrc, INetCfgBindingPath *pncbItemDest) PURE; 00221 }; 00222 #undef INTERFACE 00223 00224 #if !defined(__cplusplus) || defined(CINTERFACE) 00225 /*** IUnknown methods ***/ 00226 #define INetCfgComponentBindings_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00227 #define INetCfgComponentBindings_AddRef(p) (p)->lpVtbl->AddRef(p) 00228 #define INetCfgComponentBindings_Release(p) (p)->lpVtbl->Release(p) 00229 #define INetCfgComponentBindings_BindTo(p,a) (p)->lpVtbl->BindTo(p,a) 00230 #define INetCfgComponentBindings_UnbindFrom(p,a) (p)->lpVtbl->UnbindFrom(p,a) 00231 #define INetCfgComponentBindings_SupportsBindingInterface(p,a,b) (p)->lpVtbl->UnbindFrom(p,a,b) 00232 #define INetCfgComponentBindings_IsBoundTo(p,a) (p)->lpVtbl->IsBoundTo(p,a) 00233 #define INetCfgComponentBindings_IsBindableTo(p,a) (p)->lpVtbl->IsBindableTo(p,a) 00234 #define INetCfgComponentBindings_EnumBindingPaths(p,a,b) (p)->lpVtbl->EnumBindingPaths(p,a,b) 00235 #define INetCfgComponentBindings_MoveBefore(p,a,b,c) (p)->lpVtbl->MoveBefore(p,a,b,c) 00236 #define INetCfgComponentBindings_MoveAfter(p,a,b,c) (p)->lpVtbl->MoveAfter(p,a,b,c) 00237 #endif 00238 00239 EXTERN_C const IID IID_INetCfgComponentBindings; 00240 00241 #undef INTERFACE 00242 #define INTERFACE IEnumNetCfgComponent 00243 DECLARE_INTERFACE_(IEnumNetCfgComponent, IUnknown) 00244 { 00245 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00246 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00247 STDMETHOD_(ULONG,Release) (THIS) PURE; 00248 STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, INetCfgComponent **rgelt, ULONG *pceltFetched) PURE; 00249 STDMETHOD_(HRESULT,Skip) (THIS_ ULONG celt) PURE; 00250 STDMETHOD_(HRESULT,Reset) (THIS) PURE; 00251 STDMETHOD_(HRESULT,Clone) (THIS_ IEnumNetCfgComponent **ppenum) PURE; 00252 }; 00253 #undef INTERFACE 00254 00255 #if !defined(__cplusplus) || defined(CINTERFACE) 00256 /*** IUnknown methods ***/ 00257 #define IEnumNetCfgComponent_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00258 #define IEnumNetCfgComponent_AddRef(p) (p)->lpVtbl->AddRef(p) 00259 #define IEnumNetCfgComponent_Release(p) (p)->lpVtbl->Release(p) 00260 #define IEnumNetCfgComponent_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) 00261 #define IEnumNetCfgComponent_Skip(p,a) (p)->lpVtbl->Skip(p,a) 00262 #define IEnumNetCfgComponent_Reset(p) (p)->lpVtbl->Reset(p) 00263 #define IEnumNetCfgComponent_Clone(p,a) (p)->lpVtbl->Clone(p,a) 00264 #endif 00265 00266 EXTERN_C const IID IID_IEnumNetCfgComponent; 00267 00268 #undef INTERFACE 00269 #define INTERFACE INetCfg 00270 DECLARE_INTERFACE_(INetCfg, IUnknown) 00271 { 00272 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; 00273 STDMETHOD_(ULONG,AddRef)(THIS) PURE; 00274 STDMETHOD_(ULONG,Release) (THIS) PURE; 00275 STDMETHOD_(HRESULT,Initialize) (THIS_ PVOID pvReserved) PURE; 00276 STDMETHOD_(HRESULT,Uninitialize) (THIS) PURE; 00277 STDMETHOD_(HRESULT,Apply) (THIS) PURE; 00278 STDMETHOD_(HRESULT,Cancel) (THIS) PURE; 00279 STDMETHOD_(HRESULT,EnumComponents) (THIS_ const GUID *pguidClass, IEnumNetCfgComponent **ppenumComponent) PURE; 00280 STDMETHOD_(HRESULT,FindComponent) (THIS_ LPCWSTR pszwInfId, INetCfgComponent **ppenumComponent) PURE; 00281 STDMETHOD_(HRESULT,QueryNetCfgClass) (THIS_ const GUID *pguidClass, REFIID riid, void **ppvObject) PURE; 00282 }; 00283 #undef INTERFACE 00284 00285 #if !defined(__cplusplus) || defined(CINTERFACE) 00286 /*** IUnknown methods ***/ 00287 #define INetCfg_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) 00288 #define INetCfg_AddRef(p) (p)->lpVtbl->AddRef(p) 00289 #define INetCfg_Release(p) (p)->lpVtbl->Release(p) 00290 #define INetCfg_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) 00291 #define INetCfg_Uninitialize(p) (p)->lpVtbl->Uninitialize(p) 00292 #define INetCfg_Apply(p) (p)->lpVtbl->Apply(p) 00293 #define INetCfg_Cancel(p) (p)->lpVtbl->Cancel(p) 00294 #define INetCfg_EnumComponents(p,a,b) (p)->lpVtbl->EnumComponents(p,a,b) 00295 #define INetCfg_FindComponent(p,a,b) (p)->lpVtbl->FindComponent(p,a,b) 00296 #define INetCfg_QueryNetCfgClass(p,a,b,c) (p)->lpVtbl->QueryNetCfgClass(p,a,b,c) 00297 #endif 00298 00299 EXTERN_C const GUID CLSID_CNetCfg; 00300 EXTERN_C const IID IID_INetCfg; 00301 00302 #define NETCFG_E_ALREADY_INITIALIZED 0x8004A020 00303 #define NETCFG_E_NOT_INITIALIZED 0x8004A021 00304 #define NETCFG_E_IN_USE 0x8004A022 00305 #define NETCFG_E_NO_WRITE_LOCK 0x8004A024 00306 #define NETCFG_E_NEED_REBOOT 0x8004A025 00307 #define NETCFG_E_ACTIVE_RAS_CONNECTIONS 0x8004A026 00308 #define NETCFG_E_ADAPTER_NOT_FOUND 0x8004A027 00309 #define NETCFG_E_COMPONENT_REMOVED_PENDING_REBOOT 0x8004A028 00310 #define NETCFG_E_MAX_FILTER_LIMIT 0x8004A029 00311 #define NETCFG_S_REBOOT 0x8004A020 00312 #define NETCFG_S_DISABLE_QUERY 0x8004A022 00313 #define NETCFG_S_STILL_REFERENCED 0x8004A023 00314 #define NETCFG_S_CAUSED_SETUP_CHANGE 0x8004A024 00315 #define NETCFG_S_COMMIT_NOW 0x8004A025 00316 00317 00318 #endif Generated on Mon May 28 2012 04:31:49 for ReactOS by
1.7.6.1
|