Function : User

SECKFMGetUserName - Get current Username.
----------------------------------------------------------------------------------------------------------

#include <kfm.h>

STATUS LNPUBLIC SECKFMGetUserName(
char far *retUserName);

Description :

This function returns the Username associated with the workstation's or server's ID where this function is executed. This function is equivalent to calling the function SECKFMUserInfo with the LICENSEID parameter set to NULL.

Parameters :

Sample Usage :


   char            szServer[MAXUSERNAME+1];

   if (error = SECKFMGetUserName (szServer))
   {
       printf ("Unable to get current server or user name.");
       return (error);
   }


See Also :

SECKFMUserInfo
----------------------------------------------------------------------------------------------------------