00001 /* 00002 Samba's Internal Registry objects 00003 00004 SMB parameters and setup 00005 Copyright (C) Gerald Carter 2002-2006. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #ifndef _REG_OBJECTS_H /* _REG_OBJECTS_H */ 00023 #define _REG_OBJECTS_H 00024 00025 /* structure to contain registry values */ 00026 00027 typedef struct { 00028 fstring valuename; 00029 uint16 type; 00030 /* this should be encapsulated in an RPC_DATA_BLOB */ 00031 uint32 size; /* in bytes */ 00032 uint8 *data_p; 00033 } REGISTRY_VALUE; 00034 00035 /* container for registry values */ 00036 00037 typedef struct { 00038 uint32 num_values; 00039 REGISTRY_VALUE **values; 00040 } REGVAL_CTR; 00041 00042 /* container for registry subkey names */ 00043 00044 typedef struct { 00045 uint32 num_subkeys; 00046 char **subkeys; 00047 } REGSUBKEY_CTR; 00048 00049 #endif /* _REG_OBJECTS_H */ 00050