BuildAndSendHeader

Opens a consistent header for all pages.

Syntax

    #include <pexports.h>
    
    UINT BuildAndSendHeader (
      HINTERNET   handle,
      char       *windowTitle,
      char       *pageIdentifier,
      char        refresh,
      UINT32      refreshDelay,
      UINT        flags,
      void        (*AddHeaderText)(HINTERNET handle),
      char       *bodyTagText
      char       *helpURL);
    

Parameters

handle
(IN) Specifies the HTTP stack handle.
windowTitle
(IN) Points to the title of the page. If this parameter is NULL, a default window title is provided.
pageIdentifier
(IN) Points to the text that is printed out on the header as a title for the page. If this parameter is NULL, a default window title is provided.
refresh
(IN) Specifies whether the page is to be refreshed:
  • 0 = No refresh.
  • Other = The page is set to automatically refresh itself.
refreshDelay
(IN) Specifies the number of seconds that should elapse before refreshing the page.
flags
(IN) Reserved for future use.
AddHeaderText
(IN) If this is not NULL, points to a function that puts out information in the header portion of the page. This call function is passed the following parameters:
  • handle—(IN) Specifies the HTTP stack handle.
bodyTagText
(IN) Points to additional text that is put in the BODY tag. This is necessary for some functionality. For example, you may put in <BODY onLoad="SomeJavaScriptFunction()"> which will call the SomeJavaScriptFunction when the page has loaded.
helpURL
(IN) Points to the URL of a page that contains help information for the current page.

Return Values

If successful, returns 0.

Remarks

This function can sleep.