Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Token identification

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DBC User - 09 Oct 2007 15:58 GMT
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.
Willy Denoyette [MVP] - 09 Oct 2007 16:32 GMT
>I would like to write a program that needs to do the following;
>
[quoted text clipped - 7 lines]
>
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.