设定区域行动政策 [英] Set Zone Action Policy

查看:206
本文介绍了设定区域行动政策的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何使用它...我似乎找不到任何示例...

How do you use this...I can''t seem to find any examples...

HRESULT SetZoneActionPolicy(
    [in] DWORD dwZone,
    [in] DWORD dwAction,
    [in] BYTE *pPolicy,
    [in] DWORD cbPolicy,
    [in] URLZONEREG urlZoneReg
);

推荐答案

查看 ^ ]几乎是无用的,但是有时候,我们卑微的Windows开发人员必须使用这些东西.而且在这里我们也要展示我们的价值.

我建议您使用 IInternetZoneManager [ GetZoneActionPolicy [
Looking at the documentation[^] it''s close to useless I must admit, however sometimes that what we lowly Windows developers have to work with. And it''s also here we get to show our worth.

I suggest you playing around with IInternetZoneManager[^] especially look at the GetZoneActionPolicy [^] method as it may help you understand what you have to provide to the SetZoneActionPolicy.

I wish I could provide you with some better advice. I wish you the best of luck figuring this one out, if you do it would be worth an article I believe.


我发现了这个,对您有帮助吗?一些.我仍然看不到在哪里设置该值.

I have this that I found, Does it help? Some. I still don''t see where to set the value.

InternetSecurityZoneManager example;
Creating + getting + setting ZoneActionPolicy
HRESULT hRes = ::CoCreateInstance( CLSID_InternetZoneManager, NULL, CLSCTX_SERVER, IID_IInternetZoneManager,
reinterpret_cast< void ** >( &m_pZone ) );
_ASSERTE( SUCCEEDED( hRes ) );

m_pZone->GetZoneActionPolicy( URLZONE_INTERNET, DOWNLOAD_UNSIGNED_ACTIVEX, reinterpret_cast< BYTE * >( &m_dwOldPolicy ),sizeof( DWORD ), URLZONEREG_HKCU );

DWORD dwPolicy = URLPOLICY_QUERY;
           
m_pZone->SetZoneActionPolicy( URLZONE_INTERNET, 
DOWNLOAD_UNSIGNED_ACTIVEX, 
reinterpret_cast< BYTE * >( &dwPolicy ),
sizeof( DWORD ), URLZONEREG_HKCU );



也许有人可以理解!!!



Maybe someone can make sense of this !!!


这些天之一,您将不得不告诉我们您在做什么.您提出问题的历史令人怀疑.

1)如何使某人的IP数据包嗅探器正常工作.
2)如何从嗅探到的数据中提取HTML数据包
3)如何检查IP地址
4)如何从IP地址获取URL
5)如何在浏览器中禁止或修改弹出框
6)如何在浏览器中放置自己的弹出框
7)如何更改浏览器区域策略

你在调皮吗?你打算调皮吗?
One of these days, you''re going to have to tell us what you''re up to. The history of your questions raises suspicions.

1) How to get somebody''s IP packet sniffer to work.
2) How to pull out the HTML packets from the data sniffed
3) How to check for IP addresses
4) How to get URLs from IP addresses
5) How to supress or modify popup boxes from the browser
6) How to put up your own popup boxes in the browser
7) How to change browser zone policy

Are you being naughty? Do you intend to be naughty?


这篇关于设定区域行动政策的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆