By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,501 Members | 1,678 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,501 IT Pros & Developers. It's quick & easy.

Token identification

P: n/a
I would like to write a program that needs to do the following;

1. This program will be launched from another program. (I have that
one ready)
2. This program when launched, should display which token this program
is launched (like administrative token or standard user token).
3. I also want to know the integrity level in which it is running.

Is it possible to do this in c#?

Thanks.

Oct 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"DBC User" <ks*****@gmail.comwrote in message
news:11*********************@r29g2000hsg.googlegro ups.com...
>I would like to write a program that needs to do the following;

1. This program will be launched from another program. (I have that
one ready)
2. This program when launched, should display which token this program
is launched (like administrative token or standard user token).
3. I also want to know the integrity level in which it is running.

Is it possible to do this in c#?

Thanks.

Nothing in the Framework to do this, which means that you will have to call
Win32 API "GetTokenInformation" using PInvoke, passing one of the
TOKEN_INFORMATION_CLASS enum values depending on the attributes you want to
retrieve from the user token.

Willy.
Oct 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.