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
df088c69
Commit
df088c69
authored
Jul 10, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Jul 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added `const's to some registry API functions.
parent
273f396b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
winreg.h
include/winreg.h
+7
-7
registry.c
misc/registry.c
+16
-16
No files found.
include/winreg.h
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
,
LP
STR
,
DWORD
,
DWORD
,
LPBYTE
,
DWORD
);
DWORD
WINAPI
RegSetValueExW
(
HKEY
,
LP
WSTR
,
DWORD
,
DWORD
,
LPBYTE
,
DWORD
);
DWORD
WINAPI
RegSetValueExA
(
HKEY
,
LP
CSTR
,
DWORD
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
DWORD
WINAPI
RegSetValueExW
(
HKEY
,
LP
CWSTR
,
DWORD
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
#define RegSetValueEx WINELIB_NAME_AW(RegSetValueEx)
#ifdef __cplusplus
...
...
misc/registry.c
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
;
...
...
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