S
Samuel
Hi, I have a C# application that needs to prevent IE from writing to the
global history list. I implemented IUrlHistoryStg and I can see IE querying
for it in QueryService(). Up to here everthing should work fine. However,
the IUrlHistoryStg methods ADDURL(), DeleteUrl(), etc never gets called.
Any idea why is that?
public void QueryService(ref UUID guidService, ref UUID riid, ref int
ppvObject) {
if (GUID_guidService == GUID_IID_STopLevelBrowser &&
GUID_riid == GUID_IID_IUrlHistoryStg) {
ppvObject = Marshal.GetComInterfaceForObject(this,
typeof(IUrlHistoryStg)).ToInt32();
throw new COMException("", (int) HRESULTS.S_OK);
}
}
public void ADDURL(string pocsUrl, string pocsTitle, olelib.STATURLFLAGS
dwFlags) {
// This never gets called??
Console.WriteLine("ADDURL called");
throw new COMException("", (int) HRESULTS.E_NOTIMPL);
}
Thanks.
global history list. I implemented IUrlHistoryStg and I can see IE querying
for it in QueryService(). Up to here everthing should work fine. However,
the IUrlHistoryStg methods ADDURL(), DeleteUrl(), etc never gets called.
Any idea why is that?
public void QueryService(ref UUID guidService, ref UUID riid, ref int
ppvObject) {
if (GUID_guidService == GUID_IID_STopLevelBrowser &&
GUID_riid == GUID_IID_IUrlHistoryStg) {
ppvObject = Marshal.GetComInterfaceForObject(this,
typeof(IUrlHistoryStg)).ToInt32();
throw new COMException("", (int) HRESULTS.S_OK);
}
}
public void ADDURL(string pocsUrl, string pocsTitle, olelib.STATURLFLAGS
dwFlags) {
// This never gets called??
Console.WriteLine("ADDURL called");
throw new COMException("", (int) HRESULTS.E_NOTIMPL);
}
Thanks.