Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
df088c69
Commit
df088c69
authored
25 years ago
by
Huw D. M. Davies
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added `const's to some registry API functions.
parent
273f396b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/winreg.h
+7
-7
7 additions, 7 deletions
include/winreg.h
misc/registry.c
+16
-16
16 additions, 16 deletions
misc/registry.c
with
23 additions
and
23 deletions
include/winreg.h
+
7
−
7
View file @
df088c69
...
...
@@ -150,10 +150,10 @@ DWORD WINAPI RegCreateKeyA(HKEY,LPCSTR,LPHKEY);
DWORD
WINAPI
RegCreateKeyW
(
HKEY
,
LPCWSTR
,
LPHKEY
);
#define RegCreateKey WINELIB_NAME_AW(RegCreateKey)
DWORD
WINAPI
RegDeleteKeyA
(
HKEY
,
LPCSTR
);
DWORD
WINAPI
RegDeleteKeyW
(
HKEY
,
LPWSTR
);
DWORD
WINAPI
RegDeleteKeyW
(
HKEY
,
LP
C
WSTR
);
#define RegDeleteKey WINELIB_NAME_AW(RegDeleteKey)
DWORD
WINAPI
RegDeleteValueA
(
HKEY
,
LPSTR
);
DWORD
WINAPI
RegDeleteValueW
(
HKEY
,
LPWSTR
);
DWORD
WINAPI
RegDeleteValueA
(
HKEY
,
LP
C
STR
);
DWORD
WINAPI
RegDeleteValueW
(
HKEY
,
LP
C
WSTR
);
#define RegDeleteValue WINELIB_NAME_AW(RegDeleteValue)
DWORD
WINAPI
RegEnumKeyA
(
HKEY
,
DWORD
,
LPSTR
,
DWORD
);
DWORD
WINAPI
RegEnumKeyW
(
HKEY
,
DWORD
,
LPWSTR
,
DWORD
);
...
...
@@ -167,14 +167,14 @@ DWORD WINAPI RegOpenKeyW(HKEY,LPCWSTR,LPHKEY);
DWORD
WINAPI
RegQueryValueA
(
HKEY
,
LPCSTR
,
LPSTR
,
LPLONG
);
DWORD
WINAPI
RegQueryValueW
(
HKEY
,
LPCWSTR
,
LPWSTR
,
LPLONG
);
#define RegQueryValue WINELIB_NAME_AW(RegQueryValue)
DWORD
WINAPI
RegQueryValueExA
(
HKEY
,
LPSTR
,
LPDWORD
,
LPDWORD
,
LPBYTE
,
LPDWORD
);
DWORD
WINAPI
RegQueryValueExW
(
HKEY
,
LPWSTR
,
LPDWORD
,
LPDWORD
,
LPBYTE
,
LPDWORD
);
DWORD
WINAPI
RegQueryValueExA
(
HKEY
,
LP
C
STR
,
LPDWORD
,
LPDWORD
,
LPBYTE
,
LPDWORD
);
DWORD
WINAPI
RegQueryValueExW
(
HKEY
,
LP
C
WSTR
,
LPDWORD
,
LPDWORD
,
LPBYTE
,
LPDWORD
);
#define RegQueryValueEx WINELIB_NAME_AW(RegQueryValueEx)
DWORD
WINAPI
RegSetValueA
(
HKEY
,
LPCSTR
,
DWORD
,
LPCSTR
,
DWORD
);
DWORD
WINAPI
RegSetValueW
(
HKEY
,
LPCWSTR
,
DWORD
,
LPCWSTR
,
DWORD
);
#define RegSetValue WINELIB_NAME_AW(RegSetValue)
DWORD
WINAPI
RegSetValueExA
(
HKEY
,
LPSTR
,
DWORD
,
DWORD
,
LP
BYTE
,
DWORD
);
DWORD
WINAPI
RegSetValueExW
(
HKEY
,
LPWSTR
,
DWORD
,
DWORD
,
LP
BYTE
,
DWORD
);
DWORD
WINAPI
RegSetValueExA
(
HKEY
,
LP
C
STR
,
DWORD
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
DWORD
WINAPI
RegSetValueExW
(
HKEY
,
LP
C
WSTR
,
DWORD
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
#define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
misc/registry.c
+
16
−
16
View file @
df088c69
...
...
@@ -2442,9 +2442,9 @@ DWORD WINAPI RegCreateKey16( HKEY hkey, LPCSTR lpszSubKey, LPHKEY retkey )
* ERROR_MORE_DATA: !!! if the specified buffer is not big enough to hold the data
* buffer is left untouched. The MS-documentation is wrong (js) !!!
*/
DWORD
WINAPI
RegQueryValueExW
(
HKEY
hkey
,
LPWSTR
lpValueName
,
LPDWORD
lpdwReserved
,
LPDWORD
lpdwType
,
LPBYTE
lpbData
,
LPDWORD
lpcbData
)
DWORD
WINAPI
RegQueryValueExW
(
HKEY
hkey
,
LP
C
WSTR
lpValueName
,
LPDWORD
lpdwReserved
,
LPDWORD
lpdwType
,
LPBYTE
lpbData
,
LPDWORD
lpcbData
)
{
LPKEYSTRUCT
lpkey
;
int
i
;
...
...
@@ -2557,9 +2557,9 @@ DWORD WINAPI RegQueryValueW( HKEY hkey, LPCWSTR lpszSubKey, LPWSTR lpszData,
*
* FIXME: check returnvalue (len) for an empty key
*/
DWORD
WINAPI
RegQueryValueExA
(
HKEY
hkey
,
LPSTR
lpszValueName
,
LPDWORD
lpdwReserved
,
LPDWORD
lpdwType
,
LPBYTE
lpbData
,
LPDWORD
lpcbData
)
DWORD
WINAPI
RegQueryValueExA
(
HKEY
hkey
,
LP
C
STR
lpszValueName
,
LPDWORD
lpdwReserved
,
LPDWORD
lpdwType
,
LPBYTE
lpbData
,
LPDWORD
lpcbData
)
{
LPWSTR
lpszValueNameW
;
LPBYTE
mybuf
=
NULL
;
...
...
@@ -2709,9 +2709,9 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPSTR lpszSubKey, LPSTR lpszData,
* NOTES
* win95 does not care about cbData for REG_SZ and finds out the len by itself (js)
*/
DWORD
WINAPI
RegSetValueExW
(
HKEY
hkey
,
LPWSTR
lpszValueName
,
DWORD
dwReserved
,
DWORD
dwType
,
LPBYTE
lpbData
,
DWORD
cbData
)
DWORD
WINAPI
RegSetValueExW
(
HKEY
hkey
,
LP
C
WSTR
lpszValueName
,
DWORD
dwReserved
,
DWORD
dwType
,
CONST
BYTE
*
lpbData
,
DWORD
cbData
)
{
LPKEYSTRUCT
lpkey
;
int
i
;
...
...
@@ -2773,9 +2773,9 @@ DWORD WINAPI RegSetValueExW( HKEY hkey, LPWSTR lpszValueName,
* NOTES
* win95 does not care about cbData for REG_SZ and finds out the len by itself (js)
*/
DWORD
WINAPI
RegSetValueExA
(
HKEY
hkey
,
LPSTR
lpszValueName
,
DWORD
dwReserved
,
DWORD
dwType
,
LPBYTE
lpbData
,
DWORD
cbData
)
DWORD
WINAPI
RegSetValueExA
(
HKEY
hkey
,
LP
C
STR
lpszValueName
,
DWORD
dwReserved
,
DWORD
dwType
,
CONST
BYTE
*
lpbData
,
DWORD
cbData
)
{
LPBYTE
buf
;
LPWSTR
lpszValueNameW
;
...
...
@@ -2796,7 +2796,7 @@ DWORD WINAPI RegSetValueExA( HKEY hkey, LPSTR lpszValueName,
cbData
=
2
*
cbData
;
}
else
buf
=
lpbData
;
buf
=
(
LPBYTE
)
lpbData
;
if
(
lpszValueName
)
lpszValueNameW
=
strdupA2W
(
lpszValueName
);
...
...
@@ -3246,7 +3246,7 @@ DWORD WINAPI RegCloseKey( HKEY hkey )
* Success: ERROR_SUCCESS
* Failure: Error code
*/
DWORD
WINAPI
RegDeleteKeyW
(
HKEY
hkey
,
LPWSTR
lpszSubKey
)
DWORD
WINAPI
RegDeleteKeyW
(
HKEY
hkey
,
LP
C
WSTR
lpszSubKey
)
{
LPKEYSTRUCT
*
lplpPrevKey
,
lpNextKey
,
lpxkey
;
LPWSTR
*
wps
;
...
...
@@ -3362,7 +3362,7 @@ DWORD WINAPI RegDeleteKey16( HKEY hkey, LPCSTR lpszSubKey )
*
* RETURNS
*/
DWORD
WINAPI
RegDeleteValueW
(
HKEY
hkey
,
LPWSTR
lpszValue
)
DWORD
WINAPI
RegDeleteValueW
(
HKEY
hkey
,
LP
C
WSTR
lpszValue
)
{
DWORD
i
;
LPKEYSTRUCT
lpkey
;
...
...
@@ -3409,7 +3409,7 @@ DWORD WINAPI RegDeleteValueW( HKEY hkey, LPWSTR lpszValue )
/******************************************************************************
* RegDeleteValue32A [ADVAPI32.135]
*/
DWORD
WINAPI
RegDeleteValueA
(
HKEY
hkey
,
LPSTR
lpszValue
)
DWORD
WINAPI
RegDeleteValueA
(
HKEY
hkey
,
LP
C
STR
lpszValue
)
{
LPWSTR
lpszValueW
;
DWORD
ret
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment