Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
32a5b638
Commit
32a5b638
authored
Mar 26, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Mar 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved some registry definitions to winnt.h.
parent
e0a71f83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
54 deletions
+76
-54
winnt.h
include/winnt.h
+74
-5
winreg.h
include/winreg.h
+1
-49
registry.c
server/registry.c
+1
-0
No files found.
include/winnt.h
View file @
32a5b638
...
...
@@ -612,7 +612,7 @@ typedef struct _CONTEXT
}
CONTEXT
;
#endif
#endif
/* __sparc__ */
#if !defined(CONTEXT_FULL) && !defined(RC_INVOKED)
#error You need to define a CONTEXT for your CPU
...
...
@@ -1622,11 +1622,80 @@ typedef enum tagSID_NAME_USE {
#define FILE_256_BYTE_ALIGNMENT 0x000000ff
#define FILE_512_BYTE_ALIGNMENT 0x000001ff
#define REG_NONE 0
/* no type */
#define REG_SZ 1
/* string type (ASCII) */
#define REG_EXPAND_SZ 2
/* string, includes %ENVVAR% (expanded by caller) (ASCII) */
#define REG_BINARY 3
/* binary format, callerspecific */
/* YES, REG_DWORD == REG_DWORD_LITTLE_ENDIAN */
#define REG_DWORD 4
/* DWORD in little endian format */
#define REG_DWORD_LITTLE_ENDIAN 4
/* DWORD in little endian format */
#define REG_DWORD_BIG_ENDIAN 5
/* DWORD in big endian format */
#define REG_LINK 6
/* symbolic link (UNICODE) */
#define REG_MULTI_SZ 7
/* multiple strings, delimited by \0, terminated by \0\0 (ASCII) */
#define REG_RESOURCE_LIST 8
/* resource list? huh? */
#define REG_FULL_RESOURCE_DESCRIPTOR 9
/* full resource descriptor? huh? */
#define REG_RESOURCE_REQUIREMENTS_LIST 10
/* ----------------------------- begin registry ----------------------------- */
/* Registry security values */
#define OWNER_SECURITY_INFORMATION 0x00000001
#define GROUP_SECURITY_INFORMATION 0x00000002
#define DACL_SECURITY_INFORMATION 0x00000004
#define SACL_SECURITY_INFORMATION 0x00000008
#define OWNER_SECURITY_INFORMATION 0x00000001
#define GROUP_SECURITY_INFORMATION 0x00000002
#define DACL_SECURITY_INFORMATION 0x00000004
#define SACL_SECURITY_INFORMATION 0x00000008
#define REG_OPTION_RESERVED 0x00000000
#define REG_OPTION_NON_VOLATILE 0x00000000
#define REG_OPTION_VOLATILE 0x00000001
#define REG_OPTION_CREATE_LINK 0x00000002
#define REG_OPTION_BACKUP_RESTORE 0x00000004
/* FIXME */
#define REG_OPTION_OPEN_LINK 0x00000008
#define REG_LEGAL_OPTION (REG_OPTION_RESERVED| \
REG_OPTION_NON_VOLATILE| \
REG_OPTION_VOLATILE| \
REG_OPTION_CREATE_LINK| \
REG_OPTION_BACKUP_RESTORE| \
REG_OPTION_OPEN_LINK)
#define REG_CREATED_NEW_KEY 0x00000001
#define REG_OPENED_EXISTING_KEY 0x00000002
/* For RegNotifyChangeKeyValue */
#define REG_NOTIFY_CHANGE_NAME 0x1
#define KEY_QUERY_VALUE 0x00000001
#define KEY_SET_VALUE 0x00000002
#define KEY_CREATE_SUB_KEY 0x00000004
#define KEY_ENUMERATE_SUB_KEYS 0x00000008
#define KEY_NOTIFY 0x00000010
#define KEY_CREATE_LINK 0x00000020
#define KEY_READ ((STANDARD_RIGHTS_READ| \
KEY_QUERY_VALUE| \
KEY_ENUMERATE_SUB_KEYS| \
KEY_NOTIFY) \
& (~SYNCHRONIZE) \
)
#define KEY_WRITE ((STANDARD_RIGHTS_WRITE| \
KEY_SET_VALUE| \
KEY_CREATE_SUB_KEY) \
& (~SYNCHRONIZE) \
)
#define KEY_EXECUTE ((KEY_READ) \
& (~SYNCHRONIZE)) \
)
#define KEY_ALL_ACCESS ((STANDARD_RIGHTS_ALL| \
KEY_QUERY_VALUE| \
KEY_SET_VALUE| \
KEY_CREATE_SUB_KEY| \
KEY_ENUMERATE_SUB_KEYS| \
KEY_NOTIFY| \
KEY_CREATE_LINK) \
& (~SYNCHRONIZE) \
)
/* ------------------------------ end registry ------------------------------ */
#define RtlEqualMemory(Destination, Source, Length) (!memcmp((Destination),(Source),(Length)))
#define RtlMoveMemory(Destination, Source, Length) memmove((Destination),(Source),(Length))
...
...
include/winreg.h
View file @
32a5b638
/*
*
Shell Library definitions
*
Win32 registry defines (see also winnt.h)
*/
#ifndef __WINE_WINREG_H
#define __WINE_WINREG_H
...
...
@@ -23,20 +23,6 @@ extern "C" {
#define SHELL_ERROR_ACCESS_DENIED 8L
*/
#define REG_NONE 0
/* no type */
#define REG_SZ 1
/* string type (ASCII) */
#define REG_EXPAND_SZ 2
/* string, includes %ENVVAR% (expanded by caller) (ASCII) */
#define REG_BINARY 3
/* binary format, callerspecific */
/* YES, REG_DWORD == REG_DWORD_LITTLE_ENDIAN */
#define REG_DWORD 4
/* DWORD in little endian format */
#define REG_DWORD_LITTLE_ENDIAN 4
/* DWORD in little endian format */
#define REG_DWORD_BIG_ENDIAN 5
/* DWORD in big endian format */
#define REG_LINK 6
/* symbolic link (UNICODE) */
#define REG_MULTI_SZ 7
/* multiple strings, delimited by \0, terminated by \0\0 (ASCII) */
#define REG_RESOURCE_LIST 8
/* resource list? huh? */
#define REG_FULL_RESOURCE_DESCRIPTOR 9
/* full resource descriptor? huh? */
#define REG_RESOURCE_REQUIREMENTS_LIST 10
#define HKEY_CLASSES_ROOT ((HKEY) 0x80000000)
#define HKEY_CURRENT_USER ((HKEY) 0x80000001)
#define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
...
...
@@ -45,40 +31,6 @@ extern "C" {
#define HKEY_CURRENT_CONFIG ((HKEY) 0x80000005)
#define HKEY_DYN_DATA ((HKEY) 0x80000006)
#define REG_OPTION_RESERVED 0x00000000
#define REG_OPTION_NON_VOLATILE 0x00000000
#define REG_OPTION_VOLATILE 0x00000001
#define REG_OPTION_CREATE_LINK 0x00000002
#define REG_OPTION_BACKUP_RESTORE 0x00000004
/* FIXME */
#define REG_CREATED_NEW_KEY 0x00000001
#define REG_OPENED_EXISTING_KEY 0x00000002
/* For RegNotifyChangeKeyValue */
#define REG_NOTIFY_CHANGE_NAME 0x1
#define KEY_QUERY_VALUE 0x00000001
#define KEY_SET_VALUE 0x00000002
#define KEY_CREATE_SUB_KEY 0x00000004
#define KEY_ENUMERATE_SUB_KEYS 0x00000008
#define KEY_NOTIFY 0x00000010
#define KEY_CREATE_LINK 0x00000020
#define KEY_READ (STANDARD_RIGHTS_READ| \
KEY_QUERY_VALUE| \
KEY_ENUMERATE_SUB_KEYS|\
KEY_NOTIFY \
)
#define KEY_WRITE (STANDARD_RIGHTS_WRITE| \
KEY_SET_VALUE| \
KEY_CREATE_SUB_KEY \
)
#define KEY_EXECUTE KEY_READ
#define KEY_ALL_ACCESS (STANDARD_RIGHTS_ALL| \
KEY_READ|KEY_WRITE| \
KEY_CREATE_LINK \
)
/*
* registry provider structs
*/
...
...
server/registry.c
View file @
32a5b638
...
...
@@ -23,6 +23,7 @@
#include "winbase.h"
#include "winreg.h"
#include "winnt.h"
/* registry definitions */
/* a registry key */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment