diff --git a/reactos/include/ascii.h b/reactos/include/ascii.h index b801316ec62..50b0dc8b553 100644 --- a/reactos/include/ascii.h +++ b/reactos/include/ascii.h @@ -2200,7 +2200,7 @@ VerFindFileA( LONG STDCALL RegConnectRegistryA ( - LPSTR lpMachineName, + LPCSTR lpMachineName, HKEY hKey, PHKEY phkResult ); @@ -2342,7 +2342,7 @@ LONG STDCALL RegQueryValueExA ( HKEY hKey, - LPSTR lpValueName, + LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, diff --git a/reactos/include/structs.h b/reactos/include/structs.h index 7f7587cc90e..56e0947f615 100644 --- a/reactos/include/structs.h +++ b/reactos/include/structs.h @@ -44,7 +44,7 @@ #include #include #include - +/* typedef struct _VALENT { LPTSTR ve_valuename; @@ -52,6 +52,28 @@ typedef struct _VALENT DWORD ve_valueptr; DWORD ve_type; } VALENT, *PVALENT; + */ +typedef struct _VALENT_A { + LPSTR ve_valuename; + DWORD ve_valuelen; + DWORD ve_valueptr; + DWORD ve_type; +} VALENTA, *PVALENTA; + +typedef struct _VALENT_W { + LPWSTR ve_valuename; + DWORD ve_valuelen; + DWORD ve_valueptr; + DWORD ve_type; +} VALENTW, *PVALENTW; + +#ifdef UNICODE +typedef VALENTW VALENT; +typedef PVALENTW PVALENT; +#else +typedef VALENTA VALENT; +typedef PVALENTA PVALENT; +#endif #ifndef WIN32_LEAN_AND_MEAN diff --git a/reactos/include/unicode.h b/reactos/include/unicode.h index c3b1fb8f251..2c9294150c7 100644 --- a/reactos/include/unicode.h +++ b/reactos/include/unicode.h @@ -2293,7 +2293,7 @@ LONG STDCALL RegQueryMultipleValuesW ( HKEY hKey, - PVALENT val_list, + PVALENTW val_list, DWORD num_vals, LPWSTR lpValueBuf, LPDWORD ldwTotsize @@ -2303,7 +2303,7 @@ LONG STDCALL RegQueryValueExW ( HKEY hKey, - LPWSTR lpValueName, + LPCWSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, @@ -2322,7 +2322,7 @@ RegReplaceKeyW ( LONG STDCALL RegConnectRegistryW ( - LPWSTR lpMachineName, + LPCWSTR lpMachineName, HKEY hKey, PHKEY phkResult );