Files
mirror-processhacker/2.x/trunk/ProcessHacker/include/settings.h
T
wj32 ed712ac1c0 * settings system works
* configurable dbghelp location

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2619 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2010-01-12 22:32:21 +00:00

51 lines
835 B
C

#ifndef SETTINGS_H
#define SETTINGS_H
#include <ph.h>
typedef enum _PH_SETTING_TYPE
{
StringSettingType,
IntegerSettingType,
IntegerPairSettingType
} PH_SETTING_TYPE, PPH_SETTING_TYPE;
typedef struct _PH_INTEGER_PAIR
{
LONG X;
LONG Y;
} PH_INTEGER_PAIR, *PPH_INTEGER_PAIR;
typedef struct _PH_SETTING
{
PH_SETTING_TYPE Type;
PPH_STRING Name;
PPH_STRING DefaultValue;
PVOID Value;
} PH_SETTING, *PPH_SETTING;
VOID PhSettingsInitialization();
ULONG PhGetIntegerSetting(
__in PWSTR Name
);
PH_INTEGER_PAIR PhGetIntegerPairSetting(
__in PWSTR Name
);
PPH_STRING PhGetStringSetting(
__in PWSTR Name
);
BOOLEAN PhLoadSettings(
__in PWSTR FileName
);
BOOLEAN PhSaveSettings(
__in PWSTR FileName
);
#endif