Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
54d42573
Commit
54d42573
authored
Feb 15, 2005
by
Ivan Leo Puoti
Committed by
Alexandre Julliard
Feb 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Rtl*Registry* structs, defines and prototypes to winternl.h.
Fix two function declarations.
parent
d0cc21f4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
39 deletions
+47
-39
reg.c
dlls/ntdll/reg.c
+1
-39
reg.c
dlls/ntdll/tests/reg.c
+4
-0
winternl.h
include/winternl.h
+42
-0
No files found.
dlls/ntdll/reg.c
View file @
54d42573
...
...
@@ -45,44 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(reg);
/* maximum length of a key/value name in bytes (without terminating null) */
#define MAX_NAME_LENGTH ((MAX_PATH-1) * sizeof(WCHAR))
/* RtlQueryRegistryValues structs and defines */
#define RTL_REGISTRY_ABSOLUTE 0
#define RTL_REGISTRY_SERVICES 1
#define RTL_REGISTRY_CONTROL 2
#define RTL_REGISTRY_WINDOWS_NT 3
#define RTL_REGISTRY_DEVICEMAP 4
#define RTL_REGISTRY_USER 5
#define RTL_REGISTRY_HANDLE 0x40000000
#define RTL_REGISTRY_OPTIONAL 0x80000000
#define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
#define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
#define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
#define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
#define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
#define RTL_QUERY_REGISTRY_DIRECT 0x00000020
#define RTL_QUERY_REGISTRY_DELETE 0x00000040
typedef
NTSTATUS
(
WINAPI
*
PRTL_QUERY_REGISTRY_ROUTINE
)(
PCWSTR
ValueName
,
ULONG
ValueType
,
PVOID
ValueData
,
ULONG
ValueLength
,
PVOID
Context
,
PVOID
EntryContext
);
typedef
struct
_RTL_QUERY_REGISTRY_TABLE
{
PRTL_QUERY_REGISTRY_ROUTINE
QueryRoutine
;
ULONG
Flags
;
PWSTR
Name
;
PVOID
EntryContext
;
ULONG
DefaultType
;
PVOID
DefaultData
;
ULONG
DefaultLength
;
}
RTL_QUERY_REGISTRY_TABLE
,
*
PRTL_QUERY_REGISTRY_TABLE
;
/******************************************************************************
* NtCreateKey [NTDLL.@]
* ZwCreateKey [NTDLL.@]
...
...
@@ -1252,7 +1214,7 @@ NTSTATUS WINAPI RtlCheckRegistryKey(IN ULONG RelativeTo, IN PWSTR Path)
* RETURNS
* STATUS_SUCCESS if the specified key is sucesfully deleted, or an NTSTATUS error code.
*/
NTSTATUS
RtlDeleteRegistryValue
(
IN
ULONG
RelativeTo
,
IN
PCWSTR
Path
,
IN
PCWSTR
ValueName
)
NTSTATUS
WINAPI
RtlDeleteRegistryValue
(
IN
ULONG
RelativeTo
,
IN
PCWSTR
Path
,
IN
PCWSTR
ValueName
)
{
NTSTATUS
status
;
HKEY
handle
;
...
...
dlls/ntdll/tests/reg.c
View file @
54d42573
...
...
@@ -31,6 +31,8 @@
#include "stdlib.h"
#include "wine/unicode.h"
#ifndef __WINE_WINTERNL_H
/* RtlQueryRegistryValues structs and defines */
#define RTL_REGISTRY_ABSOLUTE 0
#define RTL_REGISTRY_SERVICES 1
...
...
@@ -67,6 +69,8 @@ typedef struct _RTL_QUERY_REGISTRY_TABLE {
ULONG
DefaultLength
;
}
RTL_QUERY_REGISTRY_TABLE
,
*
PRTL_QUERY_REGISTRY_TABLE
;
#endif
static
NTSTATUS
(
WINAPI
*
pRtlCreateUnicodeStringFromAsciiz
)(
PUNICODE_STRING
,
LPCSTR
);
static
NTSTATUS
(
WINAPI
*
pRtlFreeUnicodeString
)(
PUNICODE_STRING
);
static
NTSTATUS
(
WINAPI
*
pNtDeleteValueKey
)(
IN
HANDLE
,
IN
PUNICODE_STRING
);
...
...
include/winternl.h
View file @
54d42573
...
...
@@ -1345,6 +1345,45 @@ typedef void (CALLBACK *PRTL_THREAD_START_ROUTINE)(LPVOID); /* FIXME: not the ri
#define SE_CREATE_GLOBAL_PRIVILEGE 30L
#define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE
/* Rtl*Registry* functions structs and defines */
#define RTL_REGISTRY_ABSOLUTE 0
#define RTL_REGISTRY_SERVICES 1
#define RTL_REGISTRY_CONTROL 2
#define RTL_REGISTRY_WINDOWS_NT 3
#define RTL_REGISTRY_DEVICEMAP 4
#define RTL_REGISTRY_USER 5
#define RTL_REGISTRY_HANDLE 0x40000000
#define RTL_REGISTRY_OPTIONAL 0x80000000
#define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
#define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
#define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
#define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
#define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
#define RTL_QUERY_REGISTRY_DIRECT 0x00000020
#define RTL_QUERY_REGISTRY_DELETE 0x00000040
typedef
NTSTATUS
(
WINAPI
*
PRTL_QUERY_REGISTRY_ROUTINE
)(
PCWSTR
ValueName
,
ULONG
ValueType
,
PVOID
ValueData
,
ULONG
ValueLength
,
PVOID
Context
,
PVOID
EntryContext
);
typedef
struct
_RTL_QUERY_REGISTRY_TABLE
{
PRTL_QUERY_REGISTRY_ROUTINE
QueryRoutine
;
ULONG
Flags
;
PWSTR
Name
;
PVOID
EntryContext
;
ULONG
DefaultType
;
PVOID
DefaultData
;
ULONG
DefaultLength
;
}
RTL_QUERY_REGISTRY_TABLE
,
*
PRTL_QUERY_REGISTRY_TABLE
;
/***********************************************************************
* Function declarations
*/
...
...
@@ -1515,6 +1554,7 @@ BOOLEAN WINAPI RtlAreBitsSet(PCRTL_BITMAP,ULONG,ULONG);
BOOLEAN
WINAPI
RtlAreBitsClear
(
PCRTL_BITMAP
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
RtlCharToInteger
(
PCSZ
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
RtlCheckRegistryKey
(
ULONG
,
PWSTR
);
void
WINAPI
RtlClearAllBits
(
PRTL_BITMAP
);
void
WINAPI
RtlClearBits
(
PRTL_BITMAP
,
ULONG
,
ULONG
);
ULONG
WINAPI
RtlCompactHeap
(
HANDLE
,
ULONG
);
...
...
@@ -1544,6 +1584,7 @@ NTSTATUS WINAPI RtlCreateUserThread(HANDLE,const SECURITY_DESCRIPTOR*,BOOLEAN,P
NTSTATUS
WINAPI
RtlDeleteAce
(
PACL
,
DWORD
);
NTSTATUS
WINAPI
RtlDeleteCriticalSection
(
RTL_CRITICAL_SECTION
*
);
NTSTATUS
WINAPI
RtlDeleteRegistryValue
(
ULONG
,
PCWSTR
,
PCWSTR
);
void
WINAPI
RtlDeleteResource
(
LPRTL_RWLOCK
);
DWORD
WINAPI
RtlDeleteSecurityObject
(
DWORD
);
PRTL_USER_PROCESS_PARAMETERS
WINAPI
RtlDeNormalizeProcessParams
(
RTL_USER_PROCESS_PARAMETERS
*
);
...
...
@@ -1681,6 +1722,7 @@ BOOLEAN WINAPI RtlPrefixUnicodeString(const UNICODE_STRING*,const UNICODE_STRI
NTSTATUS
WINAPI
RtlQueryEnvironmentVariable_U
(
PWSTR
,
PUNICODE_STRING
,
PUNICODE_STRING
);
NTSTATUS
WINAPI
RtlQueryInformationAcl
(
PACL
,
LPVOID
,
DWORD
,
ACL_INFORMATION_CLASS
);
NTSTATUS
WINAPI
RtlQueryRegistryValues
(
ULONG
,
PCWSTR
,
PRTL_QUERY_REGISTRY_TABLE
,
PVOID
,
PVOID
);
NTSTATUS
WINAPI
RtlQueryTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
);
void
WINAPI
RtlRaiseException
(
PEXCEPTION_RECORD
);
...
...
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