Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: HttpWebRequest ? Pin
cd_dvd18-Dec-07 4:31
cd_dvd18-Dec-07 4:31 
GeneralRuntime type casting Pin
Skippums18-Dec-07 3:23
Skippums18-Dec-07 3:23 
GeneralRe: Runtime type casting Pin
CKnig18-Dec-07 3:29
CKnig18-Dec-07 3:29 
GeneralRe: Runtime type casting Pin
CKnig18-Dec-07 3:32
CKnig18-Dec-07 3:32 
GeneralRe: Runtime type casting Pin
Skippums18-Dec-07 6:37
Skippums18-Dec-07 6:37 
GeneralRe: Runtime type casting Pin
m@u18-Dec-07 3:35
m@u18-Dec-07 3:35 
GeneralRe: Runtime type casting Pin
Skippums18-Dec-07 5:56
Skippums18-Dec-07 5:56 
GeneralDetermine User Role (Vista) Pin
Stevo Z18-Dec-07 3:10
Stevo Z18-Dec-07 3:10 
Hi,

I need to determine user role, especially if user is administrator. I know one way, but that way doesn't provide the information I need:

WindowsPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent());

principal.IsInRole(WindowsBuiltInRole.Administrator);


the problem is that even if user is an administrator (on Vista) and the UAC is on , user still behaves like non-administrator user. Difference is when a UAC form is displayed. When an administrator is required to elevale a process to admin rights, he doesn't need to type in his (administrator) credentials. However a regular user does have to type in these credentianls (of course). So if an application is run under administrator but not elevated to administrator rights, the principal says that the Current User is not an administrator. I need to know if that user is an administrator not depending on current Thread/Appication granted rights.

thanx in advance... Smile | :)
zilo

GeneralRe: Determine User Role (Vista) Pin
Peter Walburn26-Feb-10 4:38
Peter Walburn26-Feb-10 4:38 
GeneralTAPI 2 Pin
baerten18-Dec-07 3:09
baerten18-Dec-07 3:09 
GeneralConvert to int Pin
eyeseetee18-Dec-07 1:55
eyeseetee18-Dec-07 1:55 
GeneralRe: Convert to int Pin
J4amieC18-Dec-07 1:59
J4amieC18-Dec-07 1:59 
GeneralRe: Convert to int Pin
Pete O'Hanlon18-Dec-07 2:28
mvePete O'Hanlon18-Dec-07 2:28 
GeneralRe: Convert to int Pin
eyeseetee18-Dec-07 3:00
eyeseetee18-Dec-07 3:00 
GeneralRe: Convert to int Pin
Vasudevan Deepak Kumar18-Dec-07 3:01
Vasudevan Deepak Kumar18-Dec-07 3:01 
GeneralRe: Convert to int Pin
eyeseetee18-Dec-07 3:13
eyeseetee18-Dec-07 3:13 
GeneralRe: Convert to int Pin
eyeseetee18-Dec-07 3:18
eyeseetee18-Dec-07 3:18 
GeneralUsing WebService saving the files to client system using its Internet IP address Pin
ag4667718-Dec-07 0:30
ag4667718-Dec-07 0:30 
Questioncan we hide focus from grid cell Pin
amit_8318-Dec-07 0:20
amit_8318-Dec-07 0:20 
AnswerRe: can we hide focus from grid cell Pin
Vasudevan Deepak Kumar18-Dec-07 3:00
Vasudevan Deepak Kumar18-Dec-07 3:00 
Questionredirecting Pin
liatma17-Dec-07 23:57
liatma17-Dec-07 23:57 
GeneralRe: redirecting Pin
Paul Conrad22-Dec-07 9:21
professionalPaul Conrad22-Dec-07 9:21 
Questionhow to deactivate grid cell Pin
amit_8317-Dec-07 23:51
amit_8317-Dec-07 23:51 
QuestionWhat this code is doing Pin
Hum Dum17-Dec-07 23:38
Hum Dum17-Dec-07 23:38 
AnswerRe: What this code is doing Pin
AlwiNus17-Dec-07 23:49
AlwiNus17-Dec-07 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.