The Origin Forum
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 Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 05/03/2005 :  06:10:48 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The USERNAME system variable might work...

char szUser[MAXFULLPATH];
if( GetEnvironmentVariable("USERNAME", szUser, MAXFULLPATH) )
{
out_str(szUser);
}

Mike Buess
Origin WebRing Member
Go to Top of Page

peter.cook

UK
356 Posts

Posted - 05/03/2005 :  07:34:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000