reg_r.c - REGistry Routines
A few simple registry routines (but all you need - read, write & delete).
Function
|
fetch_str_from_registry
|
Include file
|
REG_R.H
|
Prototype
|
int fetch_str_from_registry( HKEY hRootKey ,
LPTSTR sub_path , LPTSTR value_name , char *buff , int buff_size )
|
Remarks
|
Given an open registry key and a sub-path, search for a value named -
value_name. If found copy the string data into the user's buffer,
honoring buff_size as a max value. This routine will return
ERROR_SUCCESS - for all ok, ERROR_INVALID_DATA - if the value
data is not a string and ERROR_INSUFFICIENT_BUFFER if the buffer
is not big enough.
|
Function
|
write_str_to_registry
|
Include file
|
REG_R.H
|
Prototype
|
int write_str_to_registry(
HKEY hRootKey , LPCTSTR sub_path , LPTSTR value_name , char *buff )
|
Remarks
|
Given an open registry key and a sub-path - write a value tag to the
registry named - value_name and consisting of the data - buff.
|
Function
|
delete_str_from_registry
|
Include file
|
REG_R.H
|
Prototype
|
int delete_str_from_registry(
HKEY hRootKey , LPTSTR sub_path , LPTSTR value_name )
|
Remarks
|
Given an open registry key and a sub-path - delete the value tag in the
registry named - value_name.
|
Function
|
delete_key_from_registry
|
Include file
|
REG_R.H
|
Prototype
|
int delete_key_from_registry(
HKEY hRootKey , LPTSTR sub_path , LPTSTR key_str )
|
Remarks
|
Given an open registry key and a sub-path - delete the key in the registry
named - key_str.
|
Table of Contents
Function Index
generated on 22 September 1998 - 12:55:27
© 1998 Tierra del Fuego Ltd.
|