prfOpen

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
   prfClose
   prfDeleteKey
   prfDeleteValue
   prfGetKeys
   prfGetValue
   prfGetValues
   prfKeyExists
   prfOpen
   prfOpenSystem
   prfOpenUser
   prfPath
   prfSetValue
   prfValueExists
   prfValueType
Windows control
C API
C++ Class Interface
CSL links
  
var prfOpen(         // open a profile
   const root,          // root name
   [const path]);       // path name

Opens registry or profile respectively and returns a handle for subsequent calls to prf functions.

Windows: if root does not start with one of

  • HKEY_LOCAL_MACHINE
  • HKEY_CURRENT_USER
  • HKEY_CLASSES_ROOT
  • HKEY_USERS
  • HKEY_PERFORMANCE_DATA
  • HKEY_CURRENT_CONFIG
  • HKEY_DYN_DATA
the root name will be prefixed by HKEY_LOCAL_MACHINE\Software.

OS/2: Root will be taken as a file name. Usually you will give the file the extension .ini, although any extension may be used.

Path is identical with an application name. Do not use path separators, because OS/2 profiles have only one level of keys (no sub keys).

  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>