STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

reg_traits Struct Template Reference
[Registry Library]

Traits for accessing the correct registry functions for a given character type. More...

#include <winstl_reg_traits.h>

List of all members.

Public Types

typedef C char_type
 The character type.

typedef ws_size_t size_type
 The size type.

typedef ws_ptrdiff_t difference_type
 The difference type.

typedef HKEY hkey_type
 The registry key type.

typedef reg_string_t string_type
 The string type.

typedef FILETIME time_type
 The time type.


Static Public Methods

char_typestr_copy (char_type *dest, char_type const *src)
 Copies the contents of src to dest.

char_typestr_cat (char_type *dest, char_type const *src)
 Appends the contents of src to dest.

ws_int_t str_compare (char_type *dest, char_type const *src)
 Comparies the contents of src and dest.

size_type str_len (char_type const *src)
 Evaluates the length of src.

char_typeensure_subkey_end (char_type *path)
 Appends a registry path separator to path if one does not exist.

size_type expand_env_strings (char_type const *src, char_type *dest, size_type cch_dest)
 Expands environment strings in src into \dest, up to a maximum cchDest characters.

hkey_type key_dup (hkey_type hkey, REGSAM samDesired=KEY_ALL_ACCESS)
 Duplicates a registry key.

ws_long_t reg_open_key (hkey_type hkey, char_type const *sub_key_name, hkey_type *hkey_result, REGSAM samDesired=KEY_ALL_ACCESS)
 Opens a registry key.

ws_long_t reg_create_key (hkey_type hkey, char_type const *sub_key_name, hkey_type *hkey_result, REGSAM samDesired=KEY_ALL_ACCESS)
 Opens a registry key.

ws_long_t reg_query_value (hkey_type hkey, char_type const *value_name, ws_dword_t &value_type, void *data, size_type &cb_data)
 Queries a registry key value.

ws_long_t reg_query_info (hkey_type hkey, char_type *key_class, size_type *cch_key_class, ws_uint_t *c_sub_keys, size_type *cch_sub_key_max, size_type *cch_key_class_max, ws_uint_t *c_values, size_type *cch_value_name_max, size_type *cb_value_data_max, size_type *cb_security_descriptor_max, time_type *time_last_write)
 Queries a registry key's characteristics.

ws_long_t reg_enum_key (hkey_type hkey, ws_dword_t index, char_type *key_name, size_type *cch_key_name, char_type *key_class, size_type *cch_key_class, time_type *time_last_write)
 Enumerates a registry key's sub-keys.

ws_long_t reg_enum_value (hkey_type hkey, ws_dword_t index, char_type *value_name, size_type *cch_value_name, ws_dword_t *value_type, void *data, size_type &cb_data)
 Enumerates a registry key's values.


Detailed Description

template<typename C>
struct winstl::reg_traits< C >

Traits for accessing the correct registry functions for a given character type.

reg_traits is a traits class for determining the correct registry structures and functions for a given character type.

Parameters:
C  The character type


Member Typedef Documentation

typedef C char_type
 

The character type.

typedef ws_ptrdiff_t difference_type
 

The difference type.

typedef HKEY hkey_type
 

The registry key type.

typedef ws_size_t size_type
 

The size type.

typedef reg_string_t string_type
 

The string type.

typedef FILETIME time_type
 

The time type.


Member Function Documentation

char_type* ensure_subkey_end char_type   path [static]
 

Appends a registry path separator to path if one does not exist.

size_type expand_env_strings char_type const *    src,
char_type   dest,
size_type    cch_dest
[static]
 

Expands environment strings in src into \dest, up to a maximum cchDest characters.

hkey_type key_dup hkey_type    hkey,
REGSAM    samDesired = KEY_ALL_ACCESS
[static]
 

Duplicates a registry key.

ws_long_t reg_create_key hkey_type    hkey,
char_type const *    sub_key_name,
hkey_type   hkey_result,
REGSAM    samDesired = KEY_ALL_ACCESS
[static]
 

Opens a registry key.

ws_long_t reg_enum_key hkey_type    hkey,
ws_dword_t    index,
char_type   key_name,
size_type   cch_key_name,
char_type   key_class,
size_type   cch_key_class,
time_type   time_last_write
[static]
 

Enumerates a registry key's sub-keys.

ws_long_t reg_enum_value hkey_type    hkey,
ws_dword_t    index,
char_type   value_name,
size_type   cch_value_name,
ws_dword_t   value_type,
void *    data,
size_type   cb_data
[static]
 

Enumerates a registry key's values.

ws_long_t reg_open_key hkey_type    hkey,
char_type const *    sub_key_name,
hkey_type   hkey_result,
REGSAM    samDesired = KEY_ALL_ACCESS
[static]
 

Opens a registry key.

ws_long_t reg_query_info hkey_type    hkey,
char_type   key_class,
size_type   cch_key_class,
ws_uint_t   c_sub_keys,
size_type   cch_sub_key_max,
size_type   cch_key_class_max,
ws_uint_t   c_values,
size_type   cch_value_name_max,
size_type   cb_value_data_max,
size_type   cb_security_descriptor_max,
time_type   time_last_write
[static]
 

Queries a registry key's characteristics.

ws_long_t reg_query_value hkey_type    hkey,
char_type const *    value_name,
ws_dword_t   value_type,
void *    data,
size_type   cb_data
[static]
 

Queries a registry key value.

char_type* str_cat char_type   dest,
char_type const *    src
[static]
 

Appends the contents of src to dest.

ws_int_t str_compare char_type   dest,
char_type const *    src
[static]
 

Comparies the contents of src and dest.

char_type* str_copy char_type   dest,
char_type const *    src
[static]
 

Copies the contents of src to dest.

size_type str_len char_type const *    src [static]
 

Evaluates the length of src.


The documentation for this struct was generated from the following file:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004