Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET crypto Pin
David Stone27-Aug-03 20:31
sitebuilderDavid Stone27-Aug-03 20:31 
GeneralRe: .NET crypto Pin
David Stone27-Aug-03 20:24
sitebuilderDavid Stone27-Aug-03 20:24 
GeneralRe: .NET crypto Pin
devvvy28-Aug-03 0:34
devvvy28-Aug-03 0:34 
GeneralRe: .NET crypto Pin
David Stone28-Aug-03 9:06
sitebuilderDavid Stone28-Aug-03 9:06 
GeneralExtract Heading from a word doc Pin
kanch eramudu27-Aug-03 5:29
kanch eramudu27-Aug-03 5:29 
GeneralAttachment with Outlook express Pin
Velichko Sarev27-Aug-03 1:53
Velichko Sarev27-Aug-03 1:53 
GeneralAdministrator Privileges Pin
Manoj_kr7427-Aug-03 0:42
Manoj_kr7427-Aug-03 0:42 
GeneralRe: Administrator Privileges Pin
Kannan Kalyanaraman27-Aug-03 1:11
Kannan Kalyanaraman27-Aug-03 1:11 
Manoj,

Have a look at System.Security.Permissions namespace. You have fine grained security classes for each set of operations.
Also if you want to check for administrative privileges you need to do something like this,
PrincipalPermission myPermission = new    PrincipalPermission("Somebody", "BUILTIN\\Administrators");

then you can call the demand method to check if he belongs to the admin group. you can get the current user's name from System.Threading.Thread.CurrentPrincipal and assign it to WindowsPrincipal object and use WindowsIdentity to extract the username.
As for as popping up the dialog and restoring the rights, i have no idea.
hope this helps you getting started.

- Kannan
GeneralRe: Administrator Privileges Pin
Mazdak27-Aug-03 8:51
Mazdak27-Aug-03 8:51 
Generalstore users settings Pin
Member 50926226-Aug-03 23:30
Member 50926226-Aug-03 23:30 
GeneralRe: store users settings Pin
Kannan Kalyanaraman27-Aug-03 1:19
Kannan Kalyanaraman27-Aug-03 1:19 
GeneralRe: store users settings Pin
Member 50926227-Aug-03 10:47
Member 50926227-Aug-03 10:47 
GeneralRe: store users settings Pin
Nick Parker27-Aug-03 6:03
protectorNick Parker27-Aug-03 6:03 
GeneralRe: store users settings Pin
Frank Olorin Rizzi28-Aug-03 1:37
Frank Olorin Rizzi28-Aug-03 1:37 
QuestionHow to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Eric Marchesin26-Aug-03 21:25
Eric Marchesin26-Aug-03 21:25 
AnswerRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Kannan Kalyanaraman27-Aug-03 1:21
Kannan Kalyanaraman27-Aug-03 1:21 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Eric Marchesin27-Aug-03 2:02
Eric Marchesin27-Aug-03 2:02 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
leppie27-Aug-03 10:30
leppie27-Aug-03 10:30 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Eric Marchesin27-Aug-03 23:54
Eric Marchesin27-Aug-03 23:54 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
leppie28-Aug-03 6:58
leppie28-Aug-03 6:58 
AnswerRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Meysam Mahfouzi27-Aug-03 1:28
Meysam Mahfouzi27-Aug-03 1:28 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Eric Marchesin28-Aug-03 1:03
Eric Marchesin28-Aug-03 1:03 
AnswerRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Alvaro Mendez27-Aug-03 9:31
Alvaro Mendez27-Aug-03 9:31 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Alvaro Mendez27-Aug-03 10:47
Alvaro Mendez27-Aug-03 10:47 
GeneralRe: How to create a property to get a list on which it'd be impossible to add, replace or remove items ? Pin
Anonymous27-Aug-03 23:52
Anonymous27-Aug-03 23:52 

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.