Exemple #1
0
        private static void OnComInterfaceCreated(int procId, int threadId, string clsid, string iid, object newObject)
        {
            System.Diagnostics.Debug.WriteLine("CLSID: " + clsid + " / " + CLSID_HTMLDocument);
            if (clsid.ToUpper() == CLSID_HTMLDocument)
            {
                IHTMLDocument2 doc;

                doc = newObject as IHTMLDocument2;
                Console.WriteLine(procId.ToString() + ") HTMLDocument2 created [NewObj:" + newObject.ToString() + " / Doc:" + doc.ToString() + "]");
                HTMLDocument2Events2Sink docSink = new HTMLDocument2Events2Sink(procId, doc, OnDocCompleted);
            }
        }
Exemple #2
0
        private static void OnComInterfaceCreated(int procId, int threadId, string clsid, string iid, object newObject)
        {
            System.Diagnostics.Debug.WriteLine("CLSID: " + clsid + " / " + CLSID_HTMLDocument);
            if (clsid.ToUpper() == CLSID_HTMLDocument)
            {
                IHTMLDocument2 doc;

                doc = newObject as IHTMLDocument2;
                Console.WriteLine(procId.ToString() + ") HTMLDocument2 created [NewObj:" + newObject.ToString() + " / Doc:" + doc.ToString() + "]");
                HTMLDocument2Events2Sink docSink = new HTMLDocument2Events2Sink(procId, doc, OnDocCompleted);
            }
        }
 public Handler(HTMLDocument2Events2Sink parent)
 {
     this.parent = parent;
 }
 public Handler(HTMLDocument2Events2Sink parent)
 {
     this.parent = parent;
 }