PA_GetRegisteredUserCompany


version 2003


PA_GetRegisteredUserCompany (company)

Parameter Type Description
company char * Registered user company

Description

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

company

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 , company 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_GetRegisteredUserName , PA_GetSerialKey .

Error Handling

PA_GetLastError

always returns eER_NoErr