Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 123849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:21:08+00:00 2026-05-11T04:21:08+00:00

I’m trying to implement IInternetZoneManager in .NET with Webbrowser Control but I have no

  • 0

I’m trying to implement IInternetZoneManager in .NET with Webbrowser Control but I have no clue what to do.

I couldn’t find any managed code example about this implementation. I’m pretty bad about OLE stuff.

Can anyone provide a sample on this? I spend about 2 days with no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:21:09+00:00Added an answer on May 11, 2026 at 4:21 am

    This is what I get when I convert it:

    public class Constants {     public const int MAX_PATH = 260;     public const int MAX_ZONE_PATH = 260;     public const int MAX_ZONE_DESCRIPTION = 200; }  [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] public struct ZONEATTRIBUTES {     public uint cbSize;     [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.MAX_PATH)]     public string szDizplayName;     [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.MAX_ZONE_DESCRIPTION)]     public string szDescription;     [MarshalAs(UnmanagedType.ByValTStr, SizeConst = Constants.MAX_PATH)]     public string szIconPath;     public uint dwTemplateMinLevel;     public uint dwTemplateRecommended;     public uint dwTemplateCurrentLevel;     public uint dwFlags; }  public enum URLZONEREG {     URLZONEREG_DEFAULT = 0,     URLZONEREG_HKLM,     URLZONEREG_HKCU }  [Guid('79eac9ef-baf9-11ce-8c82-00aa004ba90b')] [ComImport] public interface IInternetZoneManager {     void CopyTemplatePoliciesToZone(uint dwTemplate, uint dwZone, uint dwReserved);     void CreateZoneEnumerator(ref uint pdwEnum, ref uint pdwCount, uint dwFlags);     void DestroyZoneEnumerator(uint dwEnum);     void GetZoneActionPolicy(uint dwZone, uint dwAction, IntPtr pPolicy, uint cbPolicy,          URLZONEREG urlZoneReg);     void GetZoneAt(uint dwEnum, uint dwIndex, ref uint pdwZone);     void GetZoneAttributes(uint dwZone, ref ZONEATTRIBUTES pZoneAttributes);     void GetZoneCustomPolicy(uint dwZone, [In] ref Guid guidKey, ref IntPtr ppPolicy,         ref uint pcbPolicy, URLZONEREG urlZoneReg);     void LogAction(uint dwAction, [MarshalAs(UnmanagedType.LPWStr)] string pwszUrl,          [MarshalAs(UnmanagedType.LPWStr)] string pwszText, uint dwLogFlags);     void PromptAction(uint dwAction, IntPtr hwndParent, [MarshalAs(UnmanagedType.LPWStr)] string pwszUrl,         [MarshalAs(UnmanagedType.LPWStr)] string pwszText, uint dwPromptFlags);     void SetZoneActionPolicy(uint dwZone, uint dwAction, IntPtr pPolicy, uint cbPolicy,         URLZONEREG urlZoneReg);     void SetZoneAttributes(uint dwZone, ref ZONEATTRIBUTES pZoneAttributes);     void SetZoneCustomPolicy(uint dwZone, [In] ref Guid guidKey, IntPtr pPolicy,         uint pcbPolicy, URLZONEREG urlZoneReg); } 

    I’ve also posted the definition at pinvoke.net:

    http://www.pinvoke.net/default.aspx/Interfaces.IInternetZoneManager

    Generally, you should look there first for interop definitions (and contribute if it’s not there).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
I am trying to loop through a bunch of documents I have to put
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.