Partager via


IMailSyncCallBack::GetGlobalSetting (Compact 7)

3/12/2014

The GetGlobalSetting method gets the value of the global setting from Messaging.

Syntax

HRESULT GetGlobalSetting (
  LPCWSTR pszSetting,
  LPSPropValue pval
);

Parameters

  • pszSetting
    [in] A string value for a Messaging application setting. See Remarks for more information.
  • pval
    [out] Reference to an SPropValue structure that contains the global value of the setting specified by pszSetting. If pval returns a string value, you must use IMailSyncCallBack::FreeMem to free the memory.

Return Value

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    Indicates success.

Remarks

The following table lists the set of possible global property string values.

Constant WCHAR setting String value

kszCapSaveSent[]

"SaveSent"

kszCapSMSUnicode[]

"SMSUnicode"

kszCapIncludeOriginal[]

"IncludeOriginal"

kszCapIndentBody[]

"IndentBody"

kszCapAddLeading[]

"AddLeading"

kszCapLeadChar[]

"LeadChar"

kszCapSMSRequestStatus[]

"SMSRequestStatus"

kszCapSMTPAllowAuthLogin[]

"SMTPAllowAuthLogin"

kszCapDeleteAction[]

"DeleteAction"

kszCapReturnAddress[]

"ReturnAddress"

Requirements

Header

cemapi.h

Library

cemapi.lib

See Also

Reference

IMailSyncCallBack
IMailSyncCallBack::FreeMem
SPropValue