ISInterface:GetSetting

From Lavish Software Wiki
Jump to navigation Jump to search

Syntax

  • bool GetSetting(unsigned long &SetGUID, char *Setting, char *buf, unsigned long buflen)
  • bool GetSetting(unsigned long &SetGUID, char *Setting, bool &bValue)
  • bool GetSetting(unsigned long &SetGUID, char *Setting, int &iValue)
  • bool GetSetting(unsigned long &SetGUID, char *Setting, float &fValue)
  • bool GetSetting(unsigned long &SetGUID, char *Setting, unsigned long &ulValue)
  • bool GetSetting(unsigned long &SetGUID, char *Setting, __int64 &Value)

Purpose

To get the value of a specific setting in a set

Usage

Parameters

  • unsigned long &SetGUID
[in] unique identifier of the set to get the setting from
  • char *Setting
[in] Name of the setting
  • char *buf
[out] Buffer to hold the value of a setting
  • unsigned long buflen
[in] Length of the buffer
  • bool &bValue
[out] boolean variable to hold the value of a setting
  • int &iValue
[out] integer variable to hold the value of a setting
  • float &fValue
[out] float variable to hold the value of a setting
  • unsigned long &ulValue
[out] unsigned long variable to hold the value of a setting
  • __int64 &Value
[out] 64-bit integer variable to hold the value of a setting

Return Value

  • bool
Returns true on success, false on failure

Examples

char settingbuffer[1024];
pISInterface->GetSetting(parentsetguid,"favorite food",settingbuffer,sizeof(settingbuffer));

See Also