IDefViewSafety::IsSafePage method

[The IDefViewSafety interface is no longer supported.]

Determines the safety of the page being accessed by retrieving its web content zone.

Syntax


HRESULT IsSafePage();

Parameters

This method has no parameters.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The page is determined to be safe.

E_ACCESSDENIED

The page is determined to be unsafe.

 

Examples

This example begins with an IOleClientSite object (pUnk) obtained by running QueryInterface through the site object set using IObjectWithSite::SetSite.


IDefViewSafety *spDefViewSafety;
IServiceProvider *psp;
HRESULT hr;

hr = pUnk->QueryInterface(IID_IServiceProvider, &psp));

if (SUCCEEDED(hr))
{
    hr = psp->QueryService(SID_SFolderView, IID_IDefViewSafety, spDefViewSafety);
    if(SUCCEEDED(hr))	
    {
        hr = spDefViewSafety->IsSafePage();
        
        // Handle the result as desired
        
        spDefViewSafety->Release();
    }
    psp->Release();
}

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

End of client support

Windows XP with SP2

End of server support

Windows Server 2003

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Show: