Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem in generating a Report using Crystal Report Pin
srini vas27-Dec-07 22:20
srini vas27-Dec-07 22:20 
GeneralRe: Problem in generating a Report using Crystal Report Pin
Member 305788730-Dec-07 17:19
Member 305788730-Dec-07 17:19 
Generaldata repeater according to monthly data Pin
Joey102125-Dec-07 18:42
Joey102125-Dec-07 18:42 
GeneralRe: data repeater according to monthly data Pin
KaptinKrunch26-Dec-07 9:01
KaptinKrunch26-Dec-07 9:01 
GeneralA namespace does not directly contain members such as fields or methods" Pin
Aavesh Agarwal25-Dec-07 17:00
Aavesh Agarwal25-Dec-07 17:00 
GeneralRe: A namespace does not directly contain members such as fields or methods" Pin
KaptinKrunch26-Dec-07 8:57
KaptinKrunch26-Dec-07 8:57 
GeneralApllication that will copy files Pin
new2pgrmg25-Dec-07 16:54
new2pgrmg25-Dec-07 16:54 
GeneralRe: Apllication that will copy files Pin
Waleed Eissa25-Dec-07 17:35
Waleed Eissa25-Dec-07 17:35 
GeneralRe: Apllication that will copy files Pin
new2pgrmg25-Dec-07 17:47
new2pgrmg25-Dec-07 17:47 
GeneralRe: Apllication that will copy files Pin
Waleed Eissa25-Dec-07 20:09
Waleed Eissa25-Dec-07 20:09 
GeneralRe: Apllication that will copy files Pin
new2pgrmg25-Dec-07 21:35
new2pgrmg25-Dec-07 21:35 
GeneralRe: Apllication that will copy files Pin
mav.northwind25-Dec-07 23:56
mav.northwind25-Dec-07 23:56 
GeneralRe: Apllication that will copy files Pin
Waleed Eissa26-Dec-07 6:15
Waleed Eissa26-Dec-07 6:15 
QuestionHow to apply patches...? Pin
Pankaj - Joshi25-Dec-07 16:51
Pankaj - Joshi25-Dec-07 16:51 
AnswerRe: How to apply patches...? Pin
Jeeva Jose25-Dec-07 22:20
Jeeva Jose25-Dec-07 22:20 
Generalclass design Pin
netJP12L25-Dec-07 10:56
netJP12L25-Dec-07 10:56 
GeneralRe: class design Pin
KaptinKrunch26-Dec-07 9:26
KaptinKrunch26-Dec-07 9:26 
QuestionHow to validate the inputs Pin
Kefaleas Stavros25-Dec-07 10:26
Kefaleas Stavros25-Dec-07 10:26 
AnswerRe: How to validate the inputs Pin
Ed.Poore25-Dec-07 14:48
Ed.Poore25-Dec-07 14:48 
AnswerRe: How to validate the inputs Pin
KaptinKrunch26-Dec-07 8:06
KaptinKrunch26-Dec-07 8:06 
GeneralEffective Security Access Check Pin
Jeffrey Walton25-Dec-07 7:42
Jeffrey Walton25-Dec-07 7:42 
GeneralRe: Effective Security Access Check Pin
Jeffrey Walton25-Dec-07 8:05
Jeffrey Walton25-Dec-07 8:05 
Here's what I have hacked so far. There are two problems.

1) I can't seem to work with GetAccessRule()
2) I don't know how to make the compare, even though I believe I have all the players assembled.

Jeff

DirectoryInfo information = new DirectoryInfo(directory);
DirectorySecurity security = information.GetAccessControl();

WindowsIdentity user = WindowsIdentity.GetCurrent();
SecurityIdentifier sid = user.User;

// Passing sid below will not compile
AuthorizationRuleCollection rules =
security.GetAccessRules(false, true, /*???*/);

// How is the check performed?
if( HasWriteAccess( rules ) )
GeneralRe: Effective Security Access Check Pin
martin_hughes26-Dec-07 2:11
martin_hughes26-Dec-07 2:11 
GeneralRe: Effective Security Access Check Pin
Jeffrey Walton28-Dec-07 8:08
Jeffrey Walton28-Dec-07 8:08 
GeneralRe: Effective Security Access Check [modified] Pin
martin_hughes28-Dec-07 9:28
martin_hughes28-Dec-07 9:28 

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.