windows-nt/Source/XPSP1/NT/sdktools/mtscript/inc/regsettingsio.h

28 lines
666 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef REGSETTINGSIO_H
#define REGSETTINGSIO_H
#define MAX_REG_VALUE_LENGTH 50
extern const WCHAR *g_szRegistry;
enum RKI_TYPE
{
RKI_KEY,
RKI_BOOL,
RKI_DWORD,
RKI_STRING,
RKI_EXPANDSZ
};
struct REGKEYINFORMATION
{
TCHAR * pszName; // Name of the value or key
BYTE rkiType; // Type of entry
size_t cbOffset; // Offset of member to store data in
};
HRESULT RegSettingsIO(const WCHAR *szRegistry, BOOL fSave, const REGKEYINFORMATION *aKeyValues, int cKeyValues, BYTE *pBase);
HRESULT ChangeAppIDACL(REFGUID AppID, LPTSTR Principal, BOOL fAccess, BOOL SetPrincipal, BOOL Permit);
#endif