Added a library, tried to make IWebBrowser2 not fail
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user