PA_GetRegisteredUserName

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetRegisteredUserName (name)

ParameterTypeDescription
namechar *Registered user name

Description

The routine PA_GetRegisteredUserName fills the string buffer pointed to by name with the registered user name. This information can then be used for display purposes, or can be included in a serialization scheme with PA_GetSerialKey and PA_GetRegisteredUserCompany.

name is a buffer of max 255 characters (declared as char[256] for the length byte of a Pascal string or the 0 last char of C string)

Depending on default settings or on previous calls to PA_UsePStrings or PA_UseCStrings, name will be a Pascal or an ANSI C string.

Example

Get user and company name.

   void GetUserAndCompany(char *user, char *company)
   {
      if(user)
         PA_GetRegisteredUserName(user);
      if(company)
         PA_GetRegisteredUserCompany(company);
   }

See Also

PA_GetRegisteredUserCompany, PA_GetSerialKey.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next