Library /sys$common/syshlp/helplib.hlb  —  CDSA  CDSA_API, HRS DbCreate
 NAME
   CSSM_HRS_DbCreate, HRS_DbCreate

 SYNOPSIS

 #include <hrs.h>

 API
   CSSM_RETURN CSSMAPI CSSM_HRS_DbCreate(
                          CSSM_HRS_HANDLE ModuleHandle,
                          const uint8 *DbName,
                          CSSM_HRS_DB_ACCESS_TYPE AccessRequest,
                          CSSM_HRS_DB_HANDLE_PTR DbHandle);
 SPI
   CSSM_RETURN CSSMHRI HRS_DbCreate(
                          CSSM_HRS_HANDLE ModuleHandle,
                          const uint8 *DbName,
                          CSSM_HRS_DB_ACCESS_TYPE AccessRequest,
                          CSSM_HRS_DB_HANDLE_PTR DbHandle);

 LIBRARY
   HRS Extensible Module Manager (CDSA$INHRSEMM_SHR.EXE)

 PARAMETERS
   The parameter definitions are the same for the API and the SPI.

   ModuleHandle (input)        The handle of the attached HRS
                               service provider.
   DbName (input)              A pointer to the null-terminated
                               string containing the name of the new
                               database.
   AccessRequest (input)       An indicator of the requested access
                               mode for the database, such as
                               read or write.
   DbHandle (output)           The handle to the newly created and
                               open data store. The value will be
                               set to CSSM_HRS_DB_INVALID_HANDLE
                               if the function fails.

 DESCRIPTION
   This function creates and opens a new database. The name of the
   new database is specified by the input parameter DbName. The
   newly created database is opened under the specified access mode.

 RETURN VALUE
   A CSSM_RETURN value indicating success or specifying a particular
   error condition. The value CSSM_OK indicates success. All other
   values represent an error condition.

 ERRORS
   Errors are described in the CDSA Technical Standard.  See CDSA.

   CSSMERR_CSSM_NOT_INITIALIZED
   CSSMERR_CSSM_FUNCTION_FAILED
   CSSMERR_CSSM_FUNCTION_NOT_IMPLEMENTED
   CSSMERR_CSSM_FUNCTION_INTEGRITY_FAIL
   CSSMERR_HRS_DATABASE_ALREADY_EXISTS
   CSSMERR_HRS_INVALID_ACCESS_REQUEST
   CSSMERR_HRS_INVALID_DATABASE_NAME
Close Help