VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Registry.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-14 17:20:32 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:21:16 +0100
commitba733dd032a44eb38653abe922fc6905413bcac4 (patch)
treef7173f5b947eb656c7bf1dee22c3ee291968fece /src/Common/Registry.h
parent016edc150b034d7401a1652bd3482d613ff4b9d4 (diff)
downloadVeraCrypt-ba733dd032a44eb38653abe922fc6905413bcac4.tar.gz
VeraCrypt-ba733dd032a44eb38653abe922fc6905413bcac4.zip
Use Safe String functions in Registry.c and add a unicode version of WriteLocalMachineRegistryDword function to avoid doing conversions when used.
Diffstat (limited to 'src/Common/Registry.h')
-rw-r--r--src/Common/Registry.h3
1 files changed, 2 insertions, 1 deletions
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
}