Share via


IMailSyncCallBack::GetGlobalSetting

4/8/2010

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
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

IMailSyncCallBack
IMailSyncCallBack::FreeMem
SPropValue

Other Resources

Messaging