PreviousDTI Programmer's Guide (v10) Next

PvDropUser()

Chapter contents

Drop an existing user from the database.

Header file: DDF.H
Requires: W3DBAV90.DLL

Syntax

PRESULT DDFAPICALLTYPE PvDropUser ( 
	BTI_WORD           dbHandle, 
	const BTI_CHAR*    user); 

Arguments

In
dbHandle
Handle of an open database returned by PvOpenDatabase().
In
user
Database user name

Return Values

PCM_Success
The operation was successful.
PCM_errFailed
The operation was not successful.
PCM_errInvalidAccountName
The specified account or user name does not exist.
PCM_errNotAllowedToDropAdministrator
Attempt to drop Master user.
PCM_errDatabaseHasNoSecurity
Database has no security.
PCM_errSessionSecurityError
Database opened with insufficient privilege.

Remarks

The following preconditions must be met:

The following post condition must be met:

See Also

PvAddUserToGroup()
PvAlterUserName()
PvAlterUserPassword()
PvCreateUser()
PvRemoveUserFromGroup()
PvOpenDatabase()
PvCloseDatabase()


Chapter contents
Book contents

Prev topic: PvDropTable()
Next topic: PvFreeDbNamesData()