Added a library, tried to make IWebBrowser2 not fail

This commit is contained in:
andreja6
2019-11-10 20:11:22 -08:00
parent da3cdf405e
commit 8926860107
3 changed files with 8 additions and 8 deletions

View File

@@ -42,15 +42,15 @@ IEBrowser::~IEBrowser(void) {
// Something goes here
int IEBrowser::setExternal(IDispatch** ext)
{
std::cout << &m_IEDispatcher;
IInternetHostSecurityManager* spSecMan;
spDocument2->QueryInterface(IID_IInternetHostSecurityManager,
(void **) &spSecMan);
// TODO: hr needs to say: 'S_OK'
//spSecMan->QueryCustomPolicy
HRESULT hr = spSecMan->ProcessUrlAction(URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY,
NULL, 0, NULL, 0, 0, PUAF_DEFAULT);
NULL, 0, NULL, 0, 0, PUAF_WARN_IF_DENIED);
(*ext) = &m_IEDispatcher;
return 1;