[ Home ] [ Features ] [ Products ] [ FAQ's ] [ Screens ] [ Support ] [ Downloads ] [ About ] [ Discussion ]


the software that grows with you

 

V32RegCreateKey()

Creates a specified key in the Windows Registry Database.

Syntax

V32RegCreateKey( <cKey>, [@cError] )

Arguments

cKey Character string specifying key to be created in the Windows Registry Database. <cKey> must include one of the base keys defined for Windows version specific base keys. The format of <cKey> will be somewhat like:

cKey := "HKEY_CURRENT_USER\Software\Vouch32"

Here "HKEY_CURRENT_USER" is one of the base keys defined by Windows. The other base keys are as under:

HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_CONFIG
HKEY_DYN_DATA

If base key is not included in the <cKey> definition, function will not execute and return value will be FALSE.

cError Optional variable passed by reference to hold the description of operation's success or failure.

Returns

lSuccess . If <cKey> is created successfully TRUE otherwise FALSE will be returned. Description of lSuccess will be contained in <cError> if the variable is supplied by reference.

Description

This function is handy to manipulate Windows Registry database either for copy protection purposes or to hold application specific settings. This function has been tested on Win98 and ME.

Usage

local cKey, lSuccess, cError

cKey := "HKEY_CURRENT_USER\Software\Vouch32"

lSuccess := V32RegCreateKey( cKey, @cError )
if  .not. lSuccess
   ? cError
endif

Tips

 

[ Home ][ Features ] [ Products ][ About Us ][ FAQ's ][ Screen Shots ][ Downloads ][ Support ][ Discussion ]
.

Vouch is a Trademark of Pritpal Bedi
All other Trade Marks are the property of their respective owners.
Copyright 1993-2011 Pritpal Bedi. All rights reserved.
Hit Counter  
You are Visitor # since 14 May 2002