diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-20 23:20:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:57 -0500 |
commit | 515dea007a20574c0227be9c59bdb5c5241e49da (patch) | |
tree | 05ac02c126e70d883708e2d6a9c3f6b27c1c3a8d /source3/include | |
parent | ef012f8e7a296a99786e568f844c0aef53bc673d (diff) | |
download | samba-515dea007a20574c0227be9c59bdb5c5241e49da.tar.gz samba-515dea007a20574c0227be9c59bdb5c5241e49da.tar.bz2 samba-515dea007a20574c0227be9c59bdb5c5241e49da.zip |
r19807: First attempt at wrapping something sane around the registry API. Will be
extended.
Volker
(This used to be commit 40922eb924a8e21f28720f2651f087eefc3e3aed)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/reg_objects.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/include/reg_objects.h b/source3/include/reg_objects.h index 09f124f1c8..6ddbb89cc7 100644 --- a/source3/include/reg_objects.h +++ b/source3/include/reg_objects.h @@ -32,6 +32,31 @@ typedef struct { uint8 *data_p; } REGISTRY_VALUE; +/* + * A registry string is not necessarily NULL terminated. When retrieving it + * from the net, we guarantee this however. A server might want to push it + * without the terminator though. + */ + +struct registry_string { + size_t len; + char *str; +}; + +struct registry_value { + enum winreg_Type type; + union { + uint32 dword; + uint64 qword; + struct registry_string sz; + struct { + uint32 num_strings; + struct registry_string *strings; + } multi_sz; + DATA_BLOB binary; + } v; +}; + /* container for registry values */ typedef struct { |