コード例 #1
0
        private COMProxyInstance(string path, Guid clsid, ISymbolResolver resolver)
        {
            NdrParser parser = new NdrParser(resolver);

            Entries      = parser.ReadFromComProxyFile(path, clsid);
            ComplexTypes = parser.ComplexTypes;
        }
コード例 #2
0
        private COMProxyInterfaceInstance(COMCLSIDEntry clsid, ISymbolResolver resolver, COMInterfaceEntry intf, COMRegistry registry)
        {
            NdrParser parser = new NdrParser(resolver);

            Entry        = parser.ReadFromComProxyFile(clsid.DefaultServer, clsid.Clsid, new Guid[] { intf.Iid }).FirstOrDefault();
            ComplexTypes = parser.ComplexTypes;
            OriginalName = intf.Name;
            ClassEntry   = clsid;
            m_registry   = registry;
        }