IAttachmentExecute::CheckPolicy method

Provides a Boolean test that can be used to make decisions based on the attachment's execution policy.

Syntax


HRESULT CheckPolicy();

Parameters

This method has no parameters.

Return value

Type: HRESULT

Returns one of the following values.

ValueMeaning
S_OKEnable
S_FALSEPrompt
Any other failure codeDisable

 

Remarks

IAttachmentExecute::CheckPolicy examines a set of properties known collectively as evidence. Anything used to determine trust level is considered evidence. These properties are set using the following methods.

The information returned by IAttachmentExecute::CheckPolicy enables an application to modify its UI appropriately for the situation.

IAttachmentExecute::CheckPolicy requires the application first to call either IAttachmentExecute::SetFileName or IAttachmentExecute::SetLocalPath.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shdocvw.dll (version 6.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft