Share via


Displaying the Current Security Zone

Security zones allow users to assign specific levels of security restrictions to Web sites based on their origin. For example, sites on a corporate intranet typically have a greater degree of trust, and thus fewer security restrictions, than unrecognized Internet sites. Whenever a user attempts to open or download content from the Web, the browser checks the security settings for that Web site's zone. A user can tell which zone the current Web page is in by looking at the status pane located to the far right of the Internet Explorer status bar. For more information, see URL Security Zones.

By default, the current security zone is not displayed on the IESample browser.

To display the current security zone

  1. Create a project that includes the IESample feature.

  2. In Platform Builder, from the File menu, choose Open, then navigate to the %_WINCEROOT%\Public\Ie\Oak\Iesample folder and open the sources file as text.

  3. Add the following preprocessor directive to the sources file:

    CDEFINES=$(CDEFINES) -DZONEDISPLAY
    
  4. Save the sources file.

  5. Build the project.

    - or -

    Run the build tool, Build.exe, with the -c flag set, from the %_WINCEROOT%\Public\Ie\Oak\Iesample folder.

    This builds a new Iesample.exe, not the project.

Note   You can change the width of the individual panes in the status bar to better accommodate the security zones information by modifying the settings in the CMainWnd::CreateStatusBar function in Mainwnd.cpp.

See Also

Creating an Internet Browser | Sources File | Build Tool

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.