|
Posted by Magi on March 27, 2008, 2:08 pm
Please log in for more thread options Hi Peter,
thanks a lot, it works!
Here is a grab of the program
// Open this message store
hr = pSession->OpenMsgStore (NULL,
psrs->aRow[0].lpProps[0].Value.bin.cb,
(ENTRYID *) psrs->aRow[0].lpProps[0].Value.
bin.lpb, NULL, 0, &pStore);
EXIT_ON_FAILED (hr);
SPropValue rgprops[2] = ;
rgprops[0].ulPropTag = PR_CE_SIGNATURE;
rgprops[0].Value.lpszW = TEXT("This is the test signature");
rgprops[1].ulPropTag = PR_CE_USE_SIGNATURE;
rgprops[1].Value.b = true;
hr = pStore->SetProps(2, rgprops, NULL);
Cheers
Marco
Magi ha scritto:
> Hi Peter,
> thank you very much for the quick response!
> I had a look at the cemapi header file.
> So is it right to do the following (just the logic steps...)?
>
> // open the messageStore that is my account
> pmsg = pSession->OpenMsgStore(...)
> pmsg->SetProps(PR_CE_SIGNATURE, PR_CE_USE_SIGNATURE)
>
> this would be to write the text in the box of the UI provided by the
> email client and select the checkbox?
>
> Thanks again
> Marco
>
>
> Peter Foot ha scritto:
>> The signature is stored as a property on the message store which
>> represents the specific account. The property id is defined in cemapi.h:-
>> // Account signature
>> #define PR_CE_SIGNATURE PROP_TAG (PT_UNICODE, 0x8119)
>>
>> Peter
>>
|