IVsTextImage::LockImage Method (UInt32)
Visual Studio 2015
Notifies that the text image is in use.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- grfLock
-
Type:
System::UInt32
[in] Specifies a locking flag. Values are taken from the BufferLockFlags enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
The environment notifies you that it is locking a text image. You must not make modifications while the lock is on. Once a lock is no longer needed, the environment will call UnlockImage to release the lock.
From textmgr.idl:
HRESULT IVsTextImage::LockImage(
[in] DWORD grfLock
);
Show: