version 2003
PA_CountUsers (userKind) long
Parameter | Type | Description | |
userKind | PA_UserKind | Kind of user | |
Function result | long | Number of users of a certain kind |
Description
The routine PA_CountUsers returns the number of users created by the designer or the administrator.
Pass one of the possible values of the enum PA_UserKind in userKind, defined in the "PublicTypes.h" header file:
typedef enum { eUK_CreatedByDesigner = 0, eUK_CreatedByAdministrator } PA_UserKind;
Example
Return the total user count.
long CountTotalUsers () { return ( PA_CountUsers(eUK_CreatedByDesigner) + PA_CountUsers(eUK_CreatedByAdministrator) ); }
See Also
No reference.
Error Handling
Use PA_GetLastError to see if an error occurred.