mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 17:30:25 +02:00
* Include regdef.inc only if XMLREG is defined (non-Windows platforms). On Windows it is not needed since the Windows unit is included and it has all necessary declarations. Keeping duplicate declarations in regdef.inc on Windows is dangerous since it leads to out of sync problems.
* Cleanup regdef.inc to contain only necessary types and constants to work with registry unit on non-Windows platforms. git-svn-id: trunk@23202 -
This commit is contained in:
parent
1116bc3542
commit
5556fecdf0
@ -1,28 +1,7 @@
|
||||
Type
|
||||
LPDWORD = ^DWord;
|
||||
LPVOID = Pointer;
|
||||
WINBOOL = LongBool;
|
||||
LPCSTR = PChar;
|
||||
LPSTR = Pchar;
|
||||
LONG = LongInt;
|
||||
LPBYTE = ^Byte;
|
||||
|
||||
ACCESS_MASK = DWORD;
|
||||
REGSAM = ACCESS_MASK;
|
||||
|
||||
SECURITY_ATTRIBUTES = record
|
||||
nLength : DWORD;
|
||||
lpSecurityDescriptor : LPVOID;
|
||||
bInheritHandle : WINBOOL;
|
||||
end;
|
||||
LPSECURITY_ATTRIBUTES = ^SECURITY_ATTRIBUTES;
|
||||
|
||||
|
||||
HKEY = THandle;
|
||||
PHKEY = ^HKEY;
|
||||
|
||||
|
||||
|
||||
|
||||
Const
|
||||
HKEY_CLASSES_ROOT = HKEY($80000000);
|
||||
HKEY_CURRENT_USER = HKEY($80000001);
|
||||
@ -42,25 +21,3 @@ Const
|
||||
KEY_READ = $20019;
|
||||
KEY_SET_VALUE = 2;
|
||||
KEY_WRITE = $20006;
|
||||
|
||||
REG_BINARY = 3;
|
||||
REG_DWORD = 4;
|
||||
REG_DWORD_LITTLE_ENDIAN = 4;
|
||||
REG_DWORD_BIG_ENDIAN = 5;
|
||||
REG_EXPAND_SZ = 2;
|
||||
REG_FULL_RESOURCE_DESCRIPTOR = 9;
|
||||
REG_LINK = 6;
|
||||
REG_MULTI_SZ = 7;
|
||||
REG_NONE = 0;
|
||||
REG_RESOURCE_LIST = 8;
|
||||
REG_RESOURCE_REQUIREMENTS_LIST = 10;
|
||||
REG_SZ = 1;
|
||||
|
||||
REG_OPTION_VOLATILE = 1;
|
||||
REG_OPTION_NON_VOLATILE = 0;
|
||||
REG_CREATED_NEW_KEY = 1;
|
||||
REG_OPENED_EXISTING_KEY = 2;
|
||||
|
||||
ERROR_SUCCESS = 0;
|
||||
|
||||
|
||||
|
@ -17,8 +17,9 @@ Uses
|
||||
SysUtils,
|
||||
inifiles;
|
||||
|
||||
{$ifdef XMLREG}
|
||||
{$I regdef.inc}
|
||||
|
||||
{$endif XMLREG}
|
||||
|
||||
type
|
||||
ERegistryException = class(Exception);
|
||||
|
Loading…
Reference in New Issue
Block a user