コード例 #1
0
        public static ISymUnmanagedDocumentWriter DefineDocument(this ISymUnmanagedWriter instance, IntPtr url, ref Guid language, ref Guid languageVendor, ref Guid documentType)
        {
            ISymUnmanagedDocumentWriter returnValue = instance.__DefineDocument(url, ref language, ref languageVendor, ref documentType);

            ProcessOutParameter(returnValue);
            return(returnValue);
        }
コード例 #2
0
		public SymWriter ()
		{
			object objWriter;
			CoCreateInstance (ref s_CorSymWriter_SxS_ClassID, null, 1, ref s_symUnmangedWriterIID, out objWriter);

			m_writer = (ISymUnmanagedWriter)objWriter;
		}
コード例 #3
0
ファイル: SymWriter.cs プロジェクト: jma2400/cecil-old
        public SymWriter()
        {
            object objWriter;

            CoCreateInstance(ref s_CorSymWriter_SxS_ClassID, null, 1, ref s_symUnmangedWriterIID, out objWriter);

            m_writer = (ISymUnmanagedWriter)objWriter;
        }
コード例 #4
0
ファイル: SymWriter.cs プロジェクト: xsword911/Cosmos
        /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SymbolWriter"]/*' />
        public SymbolWriter()
        {
            // Create the writer from the COM catalog
            Type   writerType   = Type.GetTypeFromCLSID(CLSID_CorSymWriter);
            object comWriterObj = Activator.CreateInstance(writerType);

            m_target = (ISymUnmanagedWriter)comWriterObj;
        }
コード例 #5
0
        public SymbolWriter(ISymUnmanagedWriter unmanaged)
        {
            if (unmanaged == null)
            {
                throw new ArgumentNullException("unmanaged");
            }

            _unmanaged = unmanaged;
        }
コード例 #6
0
ファイル: SymWriter.cs プロジェクト: xsword911/Cosmos
        /// <summary>
        /// Constructor which allows the underlying COM object to be customized
        /// </summary>
        /// <param name="comWriterObject"></param>
        /// <remarks>This would ideally be protected AND internal, but C# can only express protected OR internal</remarks>
        internal SymbolWriter(ISymUnmanagedWriter comWriterObject)
        {
            // We should not wrap null instances
            if (comWriterObject == null)
            {
                throw new ArgumentNullException("comWriterObject");
            }

            m_target = comWriterObject;
        }
コード例 #7
0
ファイル: SymWriter.cs プロジェクト: xsword911/Cosmos
        public void Dispose()
        {
            // If the underlying symbol API supports the Destroy method, then call it.
            ISymUnmanagedDispose disposer = m_target as ISymUnmanagedDispose;

            if (disposer != null)
            {
                disposer.Destroy();
            }
            m_target = null;
        }
コード例 #8
0
 public static void Initialize2(this ISymUnmanagedWriter instance, object emitter, IntPtr tempfilename, IStream pIStream, int fFullBuild, IntPtr finalfilename)
 {
     instance.__Initialize2(emitter, tempfilename, pIStream, fFullBuild, finalfilename);
 }
コード例 #9
0
 public static void DefineSequencePoints(this ISymUnmanagedWriter instance, ISymUnmanagedDocumentWriter document, uint spCount, ref uint offsets, ref uint lines, ref uint columns, ref uint endLines, ref uint endColumns)
 {
     instance.__DefineSequencePoints(document, spCount, ref offsets, ref lines, ref columns, ref endLines, ref endColumns);
 }
コード例 #10
0
 public static void RemapToken(this ISymUnmanagedWriter instance, uint oldToken, uint newToken)
 {
     instance.__RemapToken(oldToken, newToken);
 }
コード例 #11
0
 public static void CloseMethod(this ISymUnmanagedWriter instance)
 {
     instance.__CloseMethod();
 }
コード例 #12
0
 public static void GetDebugInfo(this ISymUnmanagedWriter instance, ref uint pIDD, uint cData, out uint pcData, IntPtr data)
 {
     instance.__GetDebugInfo(ref pIDD, cData, out pcData, data);
 }
コード例 #13
0
 public void SetUnderlyingWriter(IntPtr underlyingWriter)
 {
     _unmanaged = (ISymUnmanagedWriter)Marshal.GetObjectForIUnknown(underlyingWriter);
 }
コード例 #14
0
ファイル: SymWriter.cs プロジェクト: Orvid/Cosmos
        /// <summary>
        /// Constructor which allows the underlying COM object to be customized
        /// </summary>
        /// <param name="comWriterObject"></param>
        /// <remarks>This would ideally be protected AND internal, but C# can only express protected OR internal</remarks>
        internal SymbolWriter(ISymUnmanagedWriter comWriterObject)
        {
            // We should not wrap null instances
            if (comWriterObject == null)
                throw new ArgumentNullException("comWriterObject");

            m_target = comWriterObject;
        }
コード例 #15
0
 public static void SetUserEntryPoint(this ISymUnmanagedWriter instance, uint entryMethod)
 {
     instance.__SetUserEntryPoint(entryMethod);
 }
コード例 #16
0
ファイル: SymWriter.cs プロジェクト: ScottWeinstein/ILUnMerge
        /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SymbolWriter"]/*' />
        public SymbolWriter()
        {
            Guid CLSID_CorSymWriter = new Guid("0AE2DEB0-F901-478b-BB9F-881EE8066788");

            m_target = (ISymUnmanagedWriter)Activator.CreateInstance(Type.GetTypeFromCLSID(CLSID_CorSymWriter));
        }
コード例 #17
0
 public static void DefineParameter(this ISymUnmanagedWriter instance, IntPtr name, uint attributes, uint sequence, uint addrKind, uint addr1, uint addr2, uint addr3)
 {
     instance.__DefineParameter(name, attributes, sequence, addrKind, addr1, addr2, addr3);
 }
コード例 #18
0
 public static void DefineGlobalVariable(this ISymUnmanagedWriter instance, IntPtr name, uint attributes, uint cSig, ref byte signature, uint addrKind, uint addr1, uint addr2, uint addr3)
 {
     instance.__DefineGlobalVariable(name, attributes, cSig, ref signature, addrKind, addr1, addr2, addr3);
     ProcessOutParameter(signature);
 }
コード例 #19
0
 public static void SetScopeRange(this ISymUnmanagedWriter instance, uint scopeID, uint startOffset, uint endOffset)
 {
     instance.__SetScopeRange(scopeID, startOffset, endOffset);
 }
コード例 #20
0
 public static void CloseScope(this ISymUnmanagedWriter instance, uint endOffset)
 {
     instance.__CloseScope(endOffset);
 }
コード例 #21
0
 public static uint OpenScope(this ISymUnmanagedWriter instance, uint startOffset)
 {
     return(instance.__OpenScope(startOffset));
 }
コード例 #22
0
 public static void DefineConstant(this ISymUnmanagedWriter instance, IntPtr name, object value, uint cSig, ref byte signature)
 {
     instance.__DefineConstant(name, value, cSig, ref signature);
     ProcessOutParameter(signature);
 }
コード例 #23
0
ファイル: SymWriter.cs プロジェクト: ScottWeinstein/ILUnMerge
 /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SetUnderlyingWriter"]/*' />
 public void SetUnderlyingWriter(Object ppUnderlyingWriter)
 {
     m_target = (ISymUnmanagedWriter)ppUnderlyingWriter;
 }
コード例 #24
0
 public static void Abort(this ISymUnmanagedWriter instance)
 {
     instance.__Abort();
 }
コード例 #25
0
ファイル: SymWriter.cs プロジェクト: jredville/ipydbg
 /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SymbolWriter"]/*' />
 public SymbolWriter()
 {
     Guid CLSID_CorSymWriter = new Guid("0AE2DEB0-F901-478b-BB9F-881EE8066788");
     m_target = (ISymUnmanagedWriter)Activator.CreateInstance(Type.GetTypeFromCLSID(CLSID_CorSymWriter));
 }
コード例 #26
0
 public static void DefineField(this ISymUnmanagedWriter instance, uint parent, IntPtr name, uint attributes, uint cSig, ref byte signature, uint addrKind, uint addr1, uint addr2, uint addr3)
 {
     instance.__DefineField(parent, name, attributes, cSig, ref signature, addrKind, addr1, addr2, addr3);
 }
コード例 #27
0
ファイル: SymWriter.cs プロジェクト: Orvid/Cosmos
 public void Dispose()
 {
     // If the underlying symbol API supports the Destroy method, then call it.
     ISymUnmanagedDispose disposer = m_target as ISymUnmanagedDispose;
     if (disposer != null)
         disposer.Destroy();
     m_target = null;
 }
コード例 #28
0
 public static void SetSymAttribute(this ISymUnmanagedWriter instance, uint parent, IntPtr name, uint cData, ref byte data)
 {
     instance.__SetSymAttribute(parent, name, cData, ref data);
     ProcessOutParameter(data);
 }
コード例 #29
0
 public static void OpenMethod(this ISymUnmanagedWriter instance, uint method)
 {
     instance.__OpenMethod(method);
 }
コード例 #30
0
 /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SetUnderlyingWriter"]/*' />
 public void SetUnderlyingWriter(Object ppUnderlyingWriter)
 {
     m_target = (ISymUnmanagedWriter)ppUnderlyingWriter;
 }
コード例 #31
0
 public static void OpenNamespace(this ISymUnmanagedWriter instance, IntPtr name)
 {
     instance.__OpenNamespace(name);
 }
コード例 #32
0
ファイル: SymWriter.cs プロジェクト: ScottWeinstein/ILUnMerge
 /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SetUnderlyingWriter"]/*' />
 public void SetUnderlyingWriter(IntPtr ppUnderlyingWriter)
 {
     m_target = GetWriter(ppUnderlyingWriter);
 }
コード例 #33
0
 public static void CloseNamespace(this ISymUnmanagedWriter instance)
 {
     instance.__CloseNamespace();
 }
コード例 #34
0
 public static void UsingNamespace(this ISymUnmanagedWriter instance, IntPtr fullName)
 {
     instance.__UsingNamespace(fullName);
 }
コード例 #35
0
 public static void SetMethodSourceRange(this ISymUnmanagedWriter instance, ISymUnmanagedDocumentWriter startDoc, uint startLine, uint startColumn, ISymUnmanagedDocumentWriter endDoc, uint endLine, uint endColumn)
 {
     instance.__SetMethodSourceRange(startDoc, startLine, startColumn, endDoc, endLine, endColumn);
 }
コード例 #36
0
ファイル: SymWriter.cs プロジェクト: jredville/ipydbg
 /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SetUnderlyingWriter"]/*' />
 public void SetUnderlyingWriter(IntPtr ppUnderlyingWriter)
 {
     m_target = GetWriter(ppUnderlyingWriter);
 }
コード例 #37
0
ファイル: SymWriter.cs プロジェクト: Orvid/Cosmos
 /// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SymbolWriter"]/*' />
 public SymbolWriter()
 {
     // Create the writer from the COM catalog
     Type writerType = Type.GetTypeFromCLSID(CLSID_CorSymWriter);
     object comWriterObj = Activator.CreateInstance(writerType);
     m_target = (ISymUnmanagedWriter)comWriterObj;
 }