Ejemplo n.º 1
0
 int System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise(ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink adviseSink, out int connection)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
 public void SendOnDataChange(System.Runtime.InteropServices.ComTypes.IDataObject dataObject, int dwReserved, System.Runtime.InteropServices.ComTypes.ADVF advf)
 {
     Invoke("SendOnDataChange", () => _dataAdviseHolder.SendOnDataChange(dataObject, dwReserved, advf));
 }
Ejemplo n.º 3
0
        int IDataObject.DAdvise(ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink adviseSink, out int connection)
        {
            //  Log key events.
            Log("IDataObject.DAdvise called.");

            //  Not needed for Shell Data Handlers.
            throw new NotImplementedException();
        }
Ejemplo n.º 4
0
        public void Advise(System.Runtime.InteropServices.ComTypes.IDataObject dataObject, ref System.Runtime.InteropServices.ComTypes.FORMATETC fetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink advise, out int pdwConnection)
        {
            int con = -1;

            System.Runtime.InteropServices.ComTypes.FORMATETC etc = fetc;

            Invoke("Advise", () => _dataAdviseHolder.Advise(dataObject, ref etc, advf, advise, out con));
            if (!(-1 != con))
            {
                throw new InvalidOperationException(nameof(con) + " should be != -1");
            }

            ComDebug.ReportInfo("ManagedDataAdviseHolder giving out con={0}", con);
            pdwConnection = con;
        }
        int System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise(ref System.Runtime.InteropServices.ComTypes.FORMATETC pFormatetc, System.Runtime.InteropServices.ComTypes.ADVF advf, System.Runtime.InteropServices.ComTypes.IAdviseSink pAdvSink, out int pdwConnection)
        {
            pdwConnection = default(int);

            return(default(int));
        }