unsafe HRESULT IOleObject.Advise(System.Runtime.InteropServices.ComTypes.IAdviseSink pAdvSink, uint *pdwConnection) { return(HRESULT.S_OK); }
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(); }
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(); }
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)); }