Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Vista » microsoft.public.windows.vista.installation_setup
Thread: Process Running Elevated?

HTVi
TV Discussion Newsgroups

Process Running Elevated?
Najash 7/9/2007 11:40:05 PM
Hi, i have and old app. developed in VC++ 6.0, can my app use this piece of
code to know if a process is elevated?

HANDLE hToken;

OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &hToken);

DWORD infoLen;
TOKEN_ELEVATION_TYPE elevationType;

GetTokenInformation(
hToken, TokenElevationType,
&elevationType, sizeof(elevationType), &infoLen)



Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen