IVsTextManager::GetBufferSccStatus2 Method (String^, Int32, Int32)
Visual Studio 2015
Returns information on whether a buffer is under source code control and, if so, whether the file is checked in.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetBufferSccStatus2( String^ pszFileName, [OutAttribute] int% pbNonEditable, [OutAttribute] int% piStatusFlags )
Parameters
- pszFileName
-
Type:
System::String^
[in] Filename of interest.
- pbNonEditable
-
Type:
System::Int32
[out] If true, then the file can not be modified (for example, if the file is under source control and checked in). If false, then the file can be edited.)
- piStatusFlags
-
Type:
System::Int32
[out] Returns additional status flags. This is the tagVSQueryEditResult value returned from QueryEditFiles. Pass in a value of null for this parameter if you do not want the return value.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextManager::GetBufferSccStatus2( [in] const WCHAR *pszFileName, [out] BOOL *pbNonEditable, [out] int *piStatusFlags );
Show: