The Microsoft Internet Ratings API provides Win32®-based applications with easy access to support PICS-based Internet ratings and related services. These functions provide any application with access to a PICS rating parsing engine, as well as a mechanism for comparing ratings against the user information settings in Internet Explorer 4.0. This API will be available as part of Internet Explorer 4.0.
The functions in the Internet Ratings API set facilitate access to the rating support in the following ways:
Note The following overview should be considered a pre-release draft of the API specification.
The PICS specification allows for rating information to appear in HTML tags, in HTTP headers, and on a third-party URL. For performance reasons, each individual browser is responsible for obtaining HTML- and HTTP-based rating information (for details on obtaining these mechanisms, consult the PICS specification).
The following table summarizes the PICS support API functions. This table lists all of the functions for finding, pairing, and comparing rating information.
Function | Description |
RatingAccessDeniedDialog | Displays a system dialog box informing the user that access has been denied. |
RatingCheckUserAccess | Takes in a PICS rating, parses it, and compares it against what a specified user can see. |
RatingEnabledQuery | Specifies whether ratings are on or off. |
RatingFreeDetails | Frees a pointer to denial information. |
RatingObtainCancel | Cancels a call to RatingObtainQuery. |
RatingObtainQuery | Obtains ratings from certain locations and compares them. |
A browser or other application would typically use the rating functions in the following fashion:
The PICS specification defines the Backus-Naur Form (BNF) syntax for rating information, or rating nuggets. PICS specifies that rating nuggets can appear as part of HTML documents, within the header tags. The PICS specification also allows for rating information to appear as part of the HTTP headers.
For performance and logistic reasons, it is the responsibility of the browser to obtain HTML- and HTTP-level ratings. Details on how to find HTML-based ratings are part of the PICS specification.
Support for HTTP ratings may eventually be provided via URL_Moniker, part of the ActiveX SDK. Details on HTTP ratings and the associated HTTP header are specified by PICS.
The PICS committee may eventually provide reference code for applications that want to find HTML/HTTP-based ratings.