Beispiel #1
0
        /// <summary>
        /// Binds to a storage.
        /// </summary>
        protected object bindToStorage(Guid iid)
        {
            object storage;

            core.RemoteBindToStorage(null, null, ref iid, out storage);
            return(storage);
        }
Beispiel #2
0
        internal Compressor(IMoniker m)
        {
            object       _bag;
            IPropertyBag bag;

            Guid IID_IPropertyBag = new Guid("55272A00-42CB-11CE-8135-00AA004BB851");

            m.RemoteBindToStorage(null, null, ref IID_IPropertyBag, out _bag);
            bag = (IPropertyBag)_bag;

            object o;

            bag.RemoteRead("FriendlyName", out o, null, 0, null);
            name = (string)o;

            Guid IID_IBaseFilter = new Guid("56a86895-0ad4-11ce-b03a-0020af0ba770");

            m.RemoteBindToObject(null, null, ref IID_IBaseFilter, out o);
            compressor = (IBaseFilter)o;
        }