File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
Username:
Password:
Save Password
Forgot your Password?
|
Admin Options
All Forums
Origin Forum for Programming
Forum for Origin C
Identify user id
New Topic
Reply to Topic
Printer Friendly
Author
Topic
peter.cook
UK
356 Posts
Posted - 05/03/2005 : 06:10:48 AM
Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: Win 2000
Hi,
Can anyone please let me know how to identify the user id with origin C? (We're hoping to monitor Origin usage and evaluate time spent with different customised applications.).
Thanks,
Cheers,
Pete
Mike Buess
USA
3037 Posts
Posted - 05/03/2005 : 07:20:15 AM
The USERNAME system variable might work...
char szUser[MAXFULLPATH];
if( GetEnvironmentVariable("USERNAME", szUser, MAXFULLPATH) )
{
out_str(szUser);
}
Mike Buess
Origin WebRing
Member
peter.cook
UK
356 Posts
Posted - 05/03/2005 : 07:34:10 AM
Hi Mike,
Thanks for quick response! Much appreciated.
The idea I have is for being able to estimate and log time users spend on our customised apps so I can focus efforts at rate limiting steps.
Cheers,
Pete
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Learning Edition Forum
Origin Forum for Programming
Forum for Python
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
LabTalk Forum
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000