Files
mirror-processhacker/2.x/trunk/ProcessHacker/include/settings.h
T
wj32 c7e0e6f0c8 added foolproof main window positioning
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2643 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2010-01-16 10:33:24 +00:00

60 lines
983 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_SETTING
{
PH_SETTING_TYPE Type;
PWSTR 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
);
VOID PhSetIntegerSetting(
__in PWSTR Name,
__in ULONG Value
);
VOID PhSetIntegerPairSetting(
__in PWSTR Name,
__in PH_INTEGER_PAIR Value
);
VOID PhSetStringSetting(
__in PWSTR Name,
__in PWSTR Value
);
BOOLEAN PhLoadSettings(
__in PWSTR FileName
);
BOOLEAN PhSaveSettings(
__in PWSTR FileName
);
#endif