Studio COM - Accessing User Name Variable.

Version 1

    When a user logs in on to an application using the Program Manager, an environment variable is set to the id and name of the user. The values for the WaveLink Program Manager environment variables are as follows: USERNAME - string containing the name of the current user USERSIGNON - string containing the sign on of the current user.

     

    Note: You may add or remove additional environment variables to the WaveLink Program Manager at any time, but you must recompile the WaveLinkPM.exe executable. You can also search the help file for environment to locate the different environment variables. How you retreive an environment variable depends on your development environment.

     

    For example, in Visual Basic, you could do the following: dim UserName UserName = Environ("USERNAME")