From 1db600d44badeccc8e16ba8cfbd7bc1e96d267d6 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 26 Mar 2014 11:54:32 +1100 Subject: [PATCH] include: Add interface INetCfgLock. --- include/netcfgx.idl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/netcfgx.idl b/include/netcfgx.idl index 75c0a94a037..d51407fe2ef 100644 --- a/include/netcfgx.idl +++ b/include/netcfgx.idl @@ -26,6 +26,9 @@ import "wtypes.idl"; #define vi_progid(str) #endif +cpp_quote("#define NETCFG_E_ALREADY_INITIALIZED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA020)") +cpp_quote("#define NETCFG_E_NO_WRITE_LOCK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xA024)") + [ local, object, @@ -88,6 +91,20 @@ interface IEnumNetCfgComponent : IUnknown HRESULT Clone ([out] IEnumNetCfgComponent** ppenum); }; +[ + local, + object, + uuid(c0e8ae9f-306e-11d1-aacf-00805fc1270e), + pointer_default(unique) +] +interface INetCfgLock : IUnknown +{ + HRESULT AcquireWriteLock ([in] DWORD cmsTimeout, [in] LPCWSTR pszwClientDescription, + [out] LPWSTR* ppszwClientDescription); + HRESULT ReleaseWriteLock (); + HRESULT IsWriteLocked ([out] LPWSTR* ppszwClientDescription); +}; + [ local, object,