Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

How to get Windows 2000 user name ? (AREV Specific)

At 17 AUG 2001 02:27:00PM Dave Berkovsky wrote:

Hello Everyone,

Does anyone know of utility that will

return Windows 2000 login user name.

Thanks for your comments.

Dave Berkovsky


At 17 AUG 2001 05:31PM Jonathan Bird wrote:

Dave,

Yep, I've got some code to do that. I had your email address somewhaer, but I seem to have lost it. Please email me and I'll send it off to you.

Regards,

Jonathan Bird

jonathan@psi.net.nz


At 18 AUG 2001 05:15AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

The Win2000 username is often set up in the environment, and can be read from there, using an AREV function to return the DOS environment.

Just in case the USERNAME= environment variable isn't set in your environment, here's an AREV function that performs a 32-bit call to derive the current Windows username by calling the Windows API.

AREV does 32-bit Windows processing. We like the idea!

The Sprezzatura Group

World Leaders in all things RevSoft


At 20 AUG 2001 07:50AM Dave Berkovsky wrote:

Thanks guys.

View this thread on the forum...