Unlock
Relinquishes a device lock.
Syntax
Section titled “Syntax”virtual HRESULT Unlock();Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”This operation is used to relinquish the lock previously obtained using the Lock function.
Example
Section titled “Example”The following example demonstrates use of the Unlock function.
HRESULT Acme4321::OnFinalInitialize(){ HRESULT hr = S_OK;
// Release previously obtained lock hr = io.Unlock();
return hr;}