The Unlock method unlocks a GlobalVariable2 object that had been previously locked with the Lock method.
globalvar.Unlock
Part | Description |
---|---|
globalvar | Expression that evaluates to a GlobalVariable2 object |
If the global variable is not already locked, the Unlock method does nothing, and no error occurs.
If the global variable was locked from a different thread than that which issued the Unlock method, an error occurs and the global variable is not unlocked.
HRESULT Unlock( void );