CreateISAMXtd Extended ISAM file creation routine. Short Name CREISAMX() Type Extended ISAM function Declaration COUNT CreateISAMXtd(pTEXT filnam, COUNT userprof, pTEXT userid, pTEXT userword, pTEXT servname, LONG permmask, pTEXT groupid, pTEXT fileword) Description CreateISAMXtd() is a variation of CreateISAM() that permits the use of the c-tree Server’s security system. This section expands on the description of CreateISAM(). userprof is the user profile mask. Setting this to the value USERPRF_NTKEY disables the automatic TransformKey() feature. See the TransformKey() function description for more information. Setting this to the value USERPRF_SAVENV enables the automatic ctSAVENV feature. See the Begin() function description for more information. You can OR these values together, or leave userprof set to zero if you don’t want either. userid is a pointer to a buffer containing the user ID. If userid is null, the user is assigned the ID of GUEST userword is a pointer to a buffer containing the user password. servname is a pointer to a Server name if you are going to use a Server other than the default Server. permmask is the permission mask assigned to this data file. It is formed by OR-ing the appropriate permission constants. groupid is a pointer to a buffer that contains the group id that this file is to be assigned to. The group id must be valid for the user that is creating the file. If groupid is null, the file will be assigned to the default group for the user. fileword is an optional file password. If fileword is null then there will be no password for this file. If a password is established, every user will need to use the password to be able to open the file. For more information on user id’s, user passwords, server names, permission masks, group id’s, and file passwords, review “Security and Encryption” in the c-tree Plus Programmer’s Reference Guide. Return The following error codes may be seen in addition to those for CreateISAM():
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. See also CreateISAM(), TransformKey(), Begin(), InitISAM(), OpenISAM(), CloseISAM() |
||||||||||||||||||