Author: janderwald
Date: Sun Aug 31 13:01:36 2008
New Revision: 35838
URL:
http://svn.reactos.org/svn/reactos?rev=35838&view=rev
Log:
- Add INetCfgLock interface
- Add NCRP flags
Modified:
trunk/reactos/include/psdk/netcfgx.h
Modified: trunk/reactos/include/psdk/netcfgx.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/netcfgx.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/netcfgx.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/netcfgx.h [iso-8859-1] Sun Aug 31 13:01:36 2008
@@ -1,5 +1,37 @@
#ifndef __NETCFGX_H__
#define __NETCFGX_H__
+
+#undef INTERFACE
+#define INTERFACE INetCfgLock
+DECLARE_INTERFACE_(INetCfgLock, IUnknown)
+{
+ STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
+ STDMETHOD_(ULONG,AddRef)(THIS) PURE;
+ STDMETHOD_(ULONG,Release) (THIS) PURE;
+ STDMETHOD_(HRESULT,AcquireWriteLock)(THIS_ DWORD cmsTimeout, LPCWSTR
pszwClientDescription, LPWSTR *ppszwClientDescription) PURE;
+ STDMETHOD_(HRESULT,ReleaseWriteLock)(THIS) PURE;
+ STDMETHOD_(HRESULT,IsWriteLocked)(THIS_ LPWSTR *ppszwClientDescription) PURE;
+};
+#undef INTERFACE
+
+EXTERN_C const IID IID_INetCfgLock;
+
+#if !defined(__cplusplus) || defined(CINTERFACE)
+/*** IUnknown methods ***/
+#define INetCfgLock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
+#define INetCfgLock_AddRef(p) (p)->lpVtbl->AddRef(p)
+#define INetCfgLock_Release(p) (p)->lpVtbl->Release(p)
+#define INetCfgLock_AcquireWriteLock(p,a,b,c)
(p)->lpVtbl->AcquireWriteLock(p,a,b,c)
+#define INetCfgLock_ReleaseWriteLock(p) (p)->lpVtbl->ReleaseWriteLock(p)
+#define INetCfgLock_IsWriteLocked(p,a) (p)->lpVtbl->IsWriteLocked(p,a)
+#endif
+
+typedef enum
+{
+ NCRP_QUERY_PROPERTY_UI = 1,
+ NCRP_SHOW_PROPERTY_UI = 2
+}NCRP_FLAGS;
+
#undef INTERFACE
#define INTERFACE INetCfgComponent
@@ -39,7 +71,7 @@
#define INetCfgComponent_GetBindName(p,a) (p)->lpVtbl->GetBindName(p,a)
#define INetCfgComponent_GetDeviceStatus(p,a)
(p)->lpVtbl->GetDeviceStatus(p,a)
#define INetCfgComponent_OpenParamKey(p,a) (p)->lpVtbl->OpenParamKey(p,a)
-#define INetCfgComponent_RaisePropertyUi(p,a,b,c)
(p)->lpVtbl->OpenParamKey(p,a,b,c)
+#define INetCfgComponent_RaisePropertyUi(p,a,b,c)
(p)->lpVtbl->RaisePropertyUi(p,a,b,c)
#endif
#undef INTERFACE