????? ??????? API IAttachmentSecurity ?????? ?? ??? ??? ????? ??? ?????? ???????? ?? Outlook

?????? ????????? ?????? ?????????
???? ???????: 919199 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

????? ???

????? Microsoft Office Outlook 2007 ???? ??? ???????? ???? ????? ??? ????. ???? ????????? ?? ??????? ?????? ????? ?????? ?? ??? ??? Outlook ??????? ???? ????? ???. ???? ????????? ???????? ???????? API IAttachmentSecurity.

??????? ????

???????? ????????

???? ?? ????? ???????? ???? ??? ????? ?????? Outlook 2007 ?? ?????? ??? ??????. ??? ??? ???????? ???? ????? ??? ????? ????? ??????? Outlook 2007 ??? ?????? ???? ?? ??????? ???????.

????? ?? ????????? ??? ????? ???? Outlook ???? ?????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
829982?? ???? ??? ???????? ?? Microsoft Outlook

??? API IAttachmentSecurity ?????? IsAttachmentBlocked. ??? ?????? ?????? ??? ???. ??? ?????? ?????? IsAttachmentBlocked ?????? ????? ??? Outlook. ??? ?? ??? ????? ??? ?? ???? ?? ?? ?????? ?? Outlook 2007.

????? IAttachmentSecurity API

DEFINE_GUID(IID_IAttachmentSecurity,
			0xB2533636,
			0xC3F3, 0x416f, 0xBF, 0x04, 0xAE, 0xFE, 0x41, 0xAB, 0xAA, 0xE2);
#define MAPI_IATTACHMENTSECURITY_METHODS(IPURE) \
MAPIMETHOD(IsAttachmentBlocked) \
		(LPCWSTR pwszFileName, BOOL *pfBlocked) IPURE; 

DECLARE_MAPI_INTERFACE_(IAttachmentSecurity, IUnknown)
{
    BEGIN_INTERFACE
    MAPI_IUNKNOWN_METHODS(PURE)
    MAPI_IATTACHMENTSECURITY_METHODS(PURE)
};

??????? IAttachmentSecurity API

???? ?????? ??? ??? ??????? ?? ??????? ?????? QueryInterface ??? ???? ???? ??? MAPI ??? IID_IAttachmentSecurity. IsAttachmentBlocked ????? "????" ?? "pfBlocked" ??? ????? ?????? ??? ?????? Outlook, ? ????? ?? ???? ?? ?? ?????? ?? Outlook 2007.
HRESULT IsAttachmentBlocked(LPMAPISESSION lpMAPISession, LPCWSTR pwszFileName, BOOL* pfBlocked)
{
	if (!lpMAPISession || !pwszFileName || !pfBlocked) return MAPI_E_INVALID_PARAMETER;

	HRESULT hRes = S_OK;
	IAttachmentSecurity* lpAttachSec = NULL;
	BOOL bBlocked = false;

	hRes = lpMAPISession->QueryInterface(IID_IAttachmentSecurity,(void**)&lpAttachSec);
	if (SUCCEEDED(hRes) && lpAttachSec)
	{
		hRes = lpAttachSec->IsAttachmentBlocked(pwszFileName,&bBlocked);
	}
	if (lpAttachSec) lpAttachSec->Release();

	*pfBlocked = bBlocked;
	return hRes;
}// IsAttachmentBlocked

???????

???? ???????: 919199 - ????? ??? ??????: 08/???? ??????/1428 - ??????: 1.2
????? ???
  • Microsoft Office Outlook 2007
????? ??????: 
kbmt kbexpertiseinter kbinfo KB919199 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????919199

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com