BuildAndSendUpdateHeader
Opens a consistent header for all pages.
Syntax
#include <pexports.h>
UINT BuildAndSendUpdateHeader (
HINTERNET handle,
void *info,
UINT32 infoLen,
char *windowTitle,
char *pageIdentifier,
char Refresh,
UINT32 refreshDelay,
UINT flags,
void (*AddHeaderText)(HINTERNET handle),
char *bodyTagText,
char *pageToRefresh,
char *helpURL);
Parameters
- handle
- (IN) Specifies the HTTP stack handle.
- info
- (IN) Points to the title of the page. If this parameter
is NULL, a default window title is provided.
- infoLen
- (IN) Specifies the length, in bytes, of the info
parameter.
- 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 gets 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.
- pageToRefresh
- (IN) Points to the URL of the page to refresh.
- helpURL
- (IN) Points to the URL of a page that contains help
information for the current page.
Return Values
If successful, returns 0.