From ba733dd032a44eb38653abe922fc6905413bcac4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 14 Jul 2014 17:20:32 +0200 Subject: Use Safe String functions in Registry.c and add a unicode version of WriteLocalMachineRegistryDword function to avoid doing conversions when used. --- src/Common/Registry.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Common/Registry.h') diff --git a/src/Common/Registry.h b/src/Common/Registry.h index a0e2e732..693ddc0e 100644 --- a/src/Common/Registry.h +++ b/src/Common/Registry.h @@ -19,13 +19,14 @@ char *ReadRegistryString (char *subKey, char *name, char *defaultValue, char *st DWORD ReadRegistryBytes (char *path, char *name, char *value, int maxLen); void WriteRegistryInt (char *subKey, char *name, int value); BOOL WriteLocalMachineRegistryDword (char *subKey, char *name, DWORD value); +BOOL WriteLocalMachineRegistryDwordW (WCHAR *subKey, WCHAR *name, DWORD value); BOOL WriteLocalMachineRegistryMultiString (char *subKey, char *name, char *multiString, DWORD size); BOOL WriteLocalMachineRegistryString (char *subKey, char *name, char *str, BOOL expandable); void WriteRegistryString (char *subKey, char *name, char *str); BOOL WriteRegistryBytes (char *path, char *name, char *str, DWORD size); BOOL DeleteLocalMachineRegistryKey (char *parentKey, char *subKeyToDelete); void DeleteRegistryValue (char *subKey, char *name); -void GetStartupRegKeyName (char *regk); +void GetStartupRegKeyName (char *regk, size_t cbRegk); #ifdef __cplusplus } -- cgit v1.2.3