00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00047 #ifndef WINSTL_INCL_WINSTL_REGISTRY_UTIL_HPP_DEFS
00048 #define WINSTL_INCL_WINSTL_REGISTRY_UTIL_HPP_DEFS
00049
00050 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00051 # define WINSTL_VER_WINSTL_REGISTRY_UTIL_HPP_DEFS_MAJOR 4
00052 # define WINSTL_VER_WINSTL_REGISTRY_UTIL_HPP_DEFS_MINOR 0
00053 # define WINSTL_VER_WINSTL_REGISTRY_UTIL_HPP_DEFS_REVISION 1
00054 # define WINSTL_VER_WINSTL_REGISTRY_UTIL_HPP_DEFS_EDIT 56
00055 #endif
00056
00057
00058
00059
00060
00061 #ifndef WINSTL_INCL_WINSTL_H_WINSTL
00062 # include <winstl/winstl.h>
00063 #endif
00064 #ifdef _WINSTL_REG_NO_STD_STRING
00065 # error _WINSTL_REG_NO_STD_STRING no longer supported. You should select _WINSTL_REG_STRING_USE_STD_STRING or _WINSTL_REG_STRING_USE_CUSTOM_STRING, or nothing (to use STLSoft simple_string)
00066 #endif
00067
00068
00069 #if 0 && \
00070 defined(STLSOFT_COMPILER_IS_DMC) && \
00071 !defined(_WINSTL_REG_STRING_USE_CUSTOM_STRING) && \
00072 __DMC__ <= 0x0834
00073 # define _WINSTL_REG_STRING_USE_STD_STRING
00074 #endif
00075
00076
00077
00078
00079 #if defined(STLSOFT_COMPILER_IS_MSVC) && \
00080 _MSC_VER < 1200
00081 # define _WINSTL_REG_STRING_USE_STD_STRING
00082 #endif
00083
00084 #if defined(_WINSTL_REG_STRING_USE_STD_STRING)
00085 # include <string>
00086 #elif defined(_WINSTL_REG_STRING_USE_CUSTOM_STRING)
00087 # if !defined(_WINSTL_REG_STRING_CUSTOM_HEADER_FILE)
00088 # error You must define the header file (e.g. "#define _WINSTL_REG_STRING_CUSTOM_HEADER_FILE <mystring.h>") if you specify _WINSTL_REG_STRING_USE_CUSTOM_STRING
00089 # else
00090 # include _WINSTL_REG_STRING_CUSTOM_HEADER_FILE // Your string class
00091 # endif
00092 #else
00093 # ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_SIMPLE_STRING
00094 # include <stlsoft/string/simple_string.hpp>
00095 # endif
00096 #endif
00097
00098
00099
00100
00101
00102 #ifndef _WINSTL_NO_NAMESPACE
00103 # if defined(_STLSOFT_NO_NAMESPACE) || \
00104 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00105
00106 namespace winstl
00107 {
00108 # else
00109
00110
00111 namespace stlsoft
00112 {
00113
00114 namespace winstl_project
00115 {
00116
00117 # endif
00118 #endif
00119
00120
00121
00122
00123
00129 const ws_size_t CCH_REG_API_AUTO_BUFFER = 512;
00130
00131
00132
00133
00134
00135
00136
00149 #if defined(_WINSTL_REG_STRING_USE_STD_STRING)
00150
00151
00152
00158 # if defined(STLSOFT_COMPILER_IS_MSVC) && \
00159 _MSC_VER < 1100
00160 typedef string reg_string_a_t;
00161 # else
00162 typedef winstl_ns_qual_std(basic_string)<ws_char_a_t> reg_string_a_t;
00163 # endif
00164
00165 # define _WINSTL_REG_STRING_STRING_A_DEFINED
00166
00167
00168
00174 # if defined(STLSOFT_COMPILER_IS_MSVC) && \
00175 _MSC_VER < 1100
00176 typedef wstring reg_string_w_t;
00177 # else
00178 typedef winstl_ns_qual_std(basic_string)<ws_char_w_t> reg_string_w_t;
00179 # endif
00180
00181
00182
00188 # if defined(STLSOFT_COMPILER_IS_MSVC) && \
00189 _MSC_VER < 1100
00190 # ifdef UNICODE
00191 typedef wstring reg_string_t;
00192 # else
00193 typedef string reg_string_t;
00194 # endif
00195 # else
00196 typedef winstl_ns_qual_std(basic_string)<TCHAR> reg_string_t;
00197 # endif
00198
00199 # define _WINSTL_REG_STRING_STRING_W_DEFINED
00200
00201 #elif defined(_WINSTL_REG_STRING_USE_CUSTOM_STRING)
00202
00203
00204
00205 # ifndef _WINSTL_REG_STRING_STRING_A_DEFINED
00206 # error If using custom strings, must provide definition of reg_string_a_t type, and defined _WINSTL_REG_STRING_STRING_A_DEFINED
00207 # endif
00208
00209
00210
00211 # ifndef _WINSTL_REG_STRING_STRING_W_DEFINED
00212 # error If using custom strings, must provide definition of reg_string_w_t type, and defined _WINSTL_REG_STRING_STRING_W_DEFINED
00213 # endif
00214
00215 #else
00216
00217
00218
00220 typedef stlsoft_ns_qual(basic_simple_string)<ws_char_a_t> reg_string_a_t;
00221
00222 # define _WINSTL_REG_STRING_STRING_A_DEFINED
00223
00224
00225
00227 typedef stlsoft_ns_qual(basic_simple_string)<ws_char_w_t> reg_string_w_t;
00228
00229
00230
00232 typedef stlsoft_ns_qual(basic_simple_string)<TCHAR> reg_string_t;
00233
00234 # define _WINSTL_REG_STRING_STRING_W_DEFINED
00235
00236 #endif
00237
00238
00239 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00240
00241 #ifdef _STLSOFT_NO_NAMESPACES
00242 struct registry_util
00243 #else
00244 namespace registry_util
00245 #endif
00246 {
00247
00248 typedef reg_string_a_t string_a_t;
00249 typedef reg_string_w_t string_w_t;
00250 typedef reg_string_t string_t;
00251
00252 struct shared_handle;
00253 struct monitored_shared_handle;
00254
00255 #ifdef _STLSOFT_NO_NAMESPACES
00256 };
00257 #else
00258 }
00259 #endif
00260
00261 #endif
00262
00263
00264
00265 #ifndef _WINSTL_NO_NAMESPACE
00266 # if defined(_STLSOFT_NO_NAMESPACE) || \
00267 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00268 }
00269 # else
00270 }
00271 }
00272 # endif
00273 #endif
00274
00275
00276
00277 #endif
00278
00279