Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
666 B

  1. #ifndef REGSETTINGSIO_H
  2. #define REGSETTINGSIO_H
  3. #define MAX_REG_VALUE_LENGTH 50
  4. extern const WCHAR *g_szRegistry;
  5. enum RKI_TYPE
  6. {
  7. RKI_KEY,
  8. RKI_BOOL,
  9. RKI_DWORD,
  10. RKI_STRING,
  11. RKI_EXPANDSZ
  12. };
  13. struct REGKEYINFORMATION
  14. {
  15. TCHAR * pszName; // Name of the value or key
  16. BYTE rkiType; // Type of entry
  17. size_t cbOffset; // Offset of member to store data in
  18. };
  19. HRESULT RegSettingsIO(const WCHAR *szRegistry, BOOL fSave, const REGKEYINFORMATION *aKeyValues, int cKeyValues, BYTE *pBase);
  20. HRESULT ChangeAppIDACL(REFGUID AppID, LPTSTR Principal, BOOL fAccess, BOOL SetPrincipal, BOOL Permit);
  21. #endif