<< back to sysax.com Product page

15.4. Get Username

The GetUsername method can be used to retrieve the name of the user who is currently logged in and executing this method.

Exhibit 15.7. IDL Definition of method to get username


HRESULT GetUsername ([out, retval] BSTR *b_username);


Exhibit 15.8. Example usage of method to get username (VBScript)


Dim uname
uname = app.GetUsername