VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Registry.h
blob: 693ddc0ef4e9e8809efd0162a9b2176f16cc4696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 Copyright (c) 2004-2010 TrueCrypt Developers Association. All rights reserved.

 Governed by the TrueCrypt License 3.0 the full text of which is contained in
 the file License.txt included in TrueCrypt binary and source code distribution
 packages.
*/

#ifdef  __cplusplus
extern "C" {
#endif

BOOL ReadLocalMachineRegistryDword (char *subKey, char *name, DWORD *value);
BOOL ReadLocalMachineRegistryMultiString (char *subKey, char *name, char *value, DWORD *size);
BOOL ReadLocalMachineRegistryString (const char *subKey, char *name, char *value, DWORD *size);
BOOL ReadLocalMachineRegistryStringNonReflected (const char *subKey, char *name, char *str, DWORD *size);
int ReadRegistryInt (char *subKey, char *name, int defaultValue);
char *ReadRegistryString (char *subKey, char *name, char *defaultValue, char *str, int maxLen);
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, size_t cbRegk);

#ifdef  __cplusplus
}
#endif
n class="p">), MountPoint (mountPoint) { } TC_SERIALIZABLE (DismountFilesystemRequest); virtual bool RequiresElevation () const; bool Force; DirectoryPath MountPoint; }; struct DismountVolumeRequest : CoreServiceRequest { DismountVolumeRequest () { } DismountVolumeRequest (shared_ptr <VolumeInfo> volumeInfo, bool ignoreOpenFiles, bool syncVolumeInfo) : IgnoreOpenFiles (ignoreOpenFiles), MountedVolumeInfo (volumeInfo), SyncVolumeInfo (syncVolumeInfo) { } TC_SERIALIZABLE (DismountVolumeRequest); virtual bool RequiresElevation () const; bool IgnoreOpenFiles; shared_ptr <VolumeInfo> MountedVolumeInfo; bool SyncVolumeInfo; }; struct GetDeviceSectorSizeRequest : CoreServiceRequest { GetDeviceSectorSizeRequest () { } GetDeviceSectorSizeRequest (const DevicePath &path) : Path (path) { } TC_SERIALIZABLE (GetDeviceSectorSizeRequest); virtual bool RequiresElevation () const; DevicePath Path; }; struct GetDeviceSizeRequest : CoreServiceRequest { GetDeviceSizeRequest () { } GetDeviceSizeRequest (const DevicePath &path) : Path (path) { } TC_SERIALIZABLE (GetDeviceSizeRequest); virtual bool RequiresElevation () const; DevicePath Path; }; struct GetHostDevicesRequest : CoreServiceRequest { GetHostDevicesRequest () { } GetHostDevicesRequest (bool pathListOnly) : PathListOnly (pathListOnly) { } TC_SERIALIZABLE (GetHostDevicesRequest); virtual bool RequiresElevation () const; bool PathListOnly; }; struct ExitRequest : CoreServiceRequest { TC_SERIALIZABLE (ExitRequest); }; struct MountVolumeRequest : CoreServiceRequest { MountVolumeRequest () { } MountVolumeRequest (MountOptions *options) : Options (options) { } TC_SERIALIZABLE (MountVolumeRequest); virtual bool RequiresElevation () const; MountOptions *Options; protected: shared_ptr <MountOptions> DeserializedOptions; }; struct SetFileOwnerRequest : CoreServiceRequest { SetFileOwnerRequest () { } SetFileOwnerRequest (const FilesystemPath &path, const UserId &owner) : Owner (owner), Path (path) { } TC_SERIALIZABLE (SetFileOwnerRequest); virtual bool RequiresElevation () const; UserId Owner; FilesystemPath Path; }; } #endif // TC_HEADER_Core_Unix_CoreServiceRequest