Condividi tramite


GetWindowData method

Gets the travel entry that contains the specified URL.

Syntax

HRESULT retVal = object.GetWindowData(pStream, pWinData);

Parameters

  • pStream [in]
    Type: IStream

    A pointer to a variable of type IStream to receive the data.

  • pWinData [out]
    Type: LPWINDOWDATA

    The address of a variable of type WINDOWDATA that receives the window data.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

Success.

E_OUTOFMEMORY

There is insufficient memory to complete the command.

INET_E_SECURITY_PROBLEM

The current URL is not allowed in the travel log.

 

Remarks

GetWindowData was introduced in Windows Internet Explorer 7.

Special URLs that use the "javascript," "vbscript," and "about" protocol schemes are not allowed in the travel log by default. This method returns INET_E_SECURITY_PROBLEM, if the window location is one of these.

The caller is responsible for freeing the strings returned in the WINDOWDATA structure with CoTaskMemFree.