src/Misc/EFTools/DesignXmlCore/Common/RdtManager.cs
/// <summary>
///     Returns the hierarchy for this file on the rdt
/// </summary>
Returns the hierarchy for this file on the rdt
Returns the hierarchy for this file on the rdt
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate")]
        public VsShell.IVsHierarchy GetHierarchyFromDocCookie(uint docCookie)
        {
            uint pgrfRDTFlags;
            uint pdwReadLocks;
            uint pdwEditLocks;
            string pbstrMkDocument;
            VsShell.IVsHierarchy ppHier;
            uint pitemid;
            var ppunkDocData = IntPtr.Zero;
            try
            {
                NativeMethods.ThrowOnFailure(
                    _runningDocumentTable.GetDocumentInfo(
                        docCookie, out pgrfRDTFlags, out pdwReadLocks, out pdwEditLocks, out pbstrMkDocument, out ppHier, out pitemid,
                        out ppunkDocData));
            }
            finally
            {
                if (ppunkDocData != IntPtr.Zero)
                {
                    Marshal.Release(ppunkDocData);
                }
            }
            return ppHier;
        }
[ SuppressMessage ( " " , " " ) ] public VsShell . IVsHierarchy GetHierarchyFromDocCookie ( uint docCookie ) { uint pgrfRDTFlags ; uint pdwReadLocks ; uint pdwEditLocks ; string pbstrMkDocument ; VsShell . IVsHierarchy ppHier ; uint pitemid ; var ppunkDocData = IntPtr . Zero ; try { NativeMethods . ThrowOnFailure ( _runningDocumentTable . GetDocumentInfo ( docCookie , out pgrfRDTFlags , out pdwReadLocks , out pdwEditLocks , out pbstrMkDocument , out ppHier , out pitemid , out ppunkDocData ) ) ; } finally { if ( ppunkDocData != IntPtr . Zero ) { Marshal . Release ( ppunkDocData ) ; } } return ppHier ; }
Returns the hierarchy for this file on the rdt
Returns the hierarchy for this file on the rdt
docCookie
uint