Article ID: 179640
Article Last Modified on 2/12/2007
PROP_TAG(PT_STRING8,0x682B)
#include "mapix.h"
#include "mapidefs.h"
#include "mapiutil.h"
#include "mapiform.h"
BOOL DisplayNumberOfForm(LPMESSAGE lpMsg)
{
HRESULT hr;
LPMAPITABLE lpTable = NULL;
LPSRowSet lpRows = NULL;
LPSPropValue lpProp = NULL;
ULONG cValues = 0;
ULONG ulObjType = 0;
SizedSPropTagArray(1,rgPropTags) =
{ 1, {PROP_TAG(PT_STRING8,0x682b)} };
hr = lpMsg->GetProps(
(SPropTagArray*)&rgPropTags,0L,&cValues,&lpProp);
if(hr == SUCCESS_SUCCESS)
{
if(lpProp[0].ulPropTag == PROP_TAG(PT_STRING8,0x682b))
MessageBox(0L,lpProp[0].Value.lpszA,"Number",MB_OK);
}
return TRUE;
}
Keywords: kbcode kbinfo KB179640