????? ??????? ??????? MAPI dispidHeaderItem ?????? ???? ??????? ???? ???? ?? ?????? Outlook 2003

?????? ????????? ?????? ?????????
???? ???????: 912239 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

????? ???

???? ??? ??????? ????? ??????? ??????? MAPI dispidHeaderItem ?????? ?????? ??????? ????? ???? ?? Microsoft Office Outlook 2003.

??????? ????

????? ??? ????? Outlook 2003 ??????? ??? ???? ???? IMAP ?? POP3, ??? ????? ??????? ??? ??? ?????? ????? (.pst). ????? ??? ????? Outlook 2003 ??????? ????? Microsoft Exchange Server 2003, ????? ????? ????? Outlook 2003 ????? ??????? ??? ??? .pst. ???????? ??? ???? ????? ????? Outlook 2003 ????? ?? "??? Exchange ?????? ??????". ?? "??? Exchange ?????? ??????" ??? ????? ??????? ??? ??? ???? ??? ???? (.ost).

????? ???? Outlook 2003 ????? ????? ?? "??? Exchange ?????? ??????" ?? ?????? ??????? ???? ???? IMAP ? ???? ?? ???? ??????? ???? ??? ??????? ??? ????? .ost ?? .pst ??? ??????? ???? ?? ???? ??????? ???????:
  • ????? ??? ?????
  • ??? ??? ????? ??? ?????? ?????
????? ??????? ??????? MAPI dispidHeaderItem ?????? ?? ??? ??? ??????? ???????? ?? ??? .ost ?? .pst ?? "??? ??? ??? ?????" ?? ?? ???? "??? ??? ????? ??? ?????? ?????". ??? ?????? PT_LONG ??????? MAPI dispidHeaderItem ??? ?? ????? ????? PSETID_Common. ??????? MAPI dispidHeaderItem ?????? ???? ??? ????? ????? ???? ??????? ?? ???? "??? ??? ??? ?????".

?????? ?? ??? ????? ??????? MAPI dispidHeaderItem ???? ????? ??????. ???? ?? ??? ????? ???? ????? ?????? ?????? ??? ??????? IPM.Remote.

?? ????? ??????? MAPI dispidHeaderitem ?????? PSETID_Common ?? ???????? ???????? ???????:
#define dispidHeaderItem 0x8578
DEFINE_OLEGUID(PSETID_Common, MAKELONG(0x2000+(8),0x0006),0,0);
Sample code

???? Microsoft ??????? ???????? ??? ??? ?? ???? ??????? ?? ?? ?????. ??? ????? ???? ?? ????? ??? ???????? ??????? ?????? ???????? ?? ???????? ???? ????. ????? ??? ??????? ???? ?????? ?? ??? ??????? ???? ??? ????? ?? ??????? ???? ??? ????????? ?????? ?????? ?????????. ???? ??????? ????? ??? Microsoft ??? ????? ????? ???? ???? ?? ?????? ?????? ??? ??????? ?????? ????? ?????? ?? ????? ??????? ?????? ??????? ?????.

?????? ???? ?? ????? ??????? ??????? MAPI dispidHeaderItem ?????? ??? ?????? ??????? ?????: bIsHeader
BOOL bIsHeader(LPMESSAGE lpMessage)
{
	HRESULT         hRes = S_OK;
	BOOL            bRet = false;
	ULONG	          ulVal = 0;
	LPSPropValue    lpPropVal = NULL;
	LPSPropTagArray lpNamedPropTag = NULL;
	MAPINAMEID      NamedID = {0};
	LPMAPINAMEID    lpNamedID = NULL;

	NamedID.lpguid = (LPGUID) &PSETID_Common;
	NamedID.ulKind = MNID_ID;
	NamedID.Kind.lID = dispidHeaderItem;
	lpNamedID = &NamedID;

	hRes = lpMessage->GetIDsFromNames(1, &lpNamedID, NULL, &lpNamedPropTag);

	if (lpNamedPropTag && 1 == lpNamedPropTag->cValues)
	{
		lpNamedPropTag->aulPropTag[0] = CHANGE_PROP_TYPE(lpNamedPropTag->aulPropTag[0], PT_LONG);

		//Get the value of the property.
		hRes = lpMessage->GetProps(lpNamedPropTag, 0, &ulVal, &lpPropVal);
		if (lpPropVal && 1 == ulVal && PT_LONG == PROP_TYPE(lpPropVal->ulPropTag) && lpPropVal->Value.ul)
		{
			bRet = true;
		}
	}
	
	MAPIFreeBuffer(lpPropVal);
	MAPIFreeBuffer(lpNamedPropTag);
	return bRet;
}

?????

????? ?? ?????????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://msdn2.microsoft.com/en-us/library/bb820923.aspx

???????

???? ???????: 912239 - ????? ??? ??????: 12/?? ??????/1428 - ??????: 2.1
????? ???
  • Microsoft Office Outlook 2003
????? ??????: 
kbmt kbhowto kbinfo KB912239 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????912239

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

 

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