VSNDK.DebugEngine.AD7DocumentContext.AD7DocumentContext C# (CSharp) Method

AD7DocumentContext() public method

Constructor.
public AD7DocumentContext ( string fileName, TEXT_POSITION begPos, TEXT_POSITION endPos, AD7MemoryAddress codeContext ) : System
fileName string Short path file name.
begPos TEXT_POSITION Start position.
endPos TEXT_POSITION End position. In VSNDK debug engine, both begPos and endPos have the same value.
codeContext AD7MemoryAddress An address in a program's execution stream.
return System
        public AD7DocumentContext(string fileName, TEXT_POSITION begPos, TEXT_POSITION endPos, AD7MemoryAddress codeContext)
        {
            // Need to lengthen the path used by Visual Studio.
            StringBuilder documentNameSB = new StringBuilder(1024);
            GetLongPathName(fileName, documentNameSB, documentNameSB.Capacity);
            m_fileName = documentNameSB.ToString();

            m_begPos = begPos;
            m_endPos = endPos;
            m_codeContext = codeContext;
        }