Partager via


INetCfgLock::ReleaseWriteLock method

The ReleaseWriteLock method releases a lock on network configuration that the operating system previously granted.

Syntax

HRESULT ReleaseWriteLock();

Parameters

This method has no parameters.

Return value

Returns zero (S_OK) if successful; otherwise, returns NETCFG_* codes that are defined in Netcfgx.h.

Remarks

Notify objects can only call ReleaseWriteLock either before they call the INetCfg::Initialize method or after they call the INetCfg::Uninitialize method. In all other cases, calls to ReleaseWriteLock return NETCFG_E_ALREADY_INITIALIZED.

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

See also

INetCfg::Initialize

INetCfg::Uninitialize

 

 

Send comments about this topic to Microsoft