Re: Check for certian privileges
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 05/12/05
- Next message: john conwell: "Re: Check for certian privileges"
- Previous message: john conwell: "RE: Check for certian privileges"
- In reply to: john conwell: "RE: Check for certian privileges"
- Next in thread: john conwell: "Re: Check for certian privileges"
- Reply: john conwell: "Re: Check for certian privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 12 May 2005 12:41:13 -0500
CAS does not check NT security. It checks the rights of the code to do
certain operations, not the user running the code.
The easiest and most reliable way to check check access to NT protected
resources is to try to open them and catch the UnauthorizedAccessException
that might happen. If you want to do this programmatically, you probably
want to be looking at p/invoke on the AccessCheck API function.
Joe K.
"john conwell" <johnconwell@discussions.microsoft.com> wrote in message
news:F8DD2019-35BD-4E53-BBD4-0AD588A231A1@microsoft.com...
> Let me expand on my question. From what i understand CAS checks if the
> calling assembly has rights to a certian resource. But what about plain
> ole
> fashioned user rights? Does CAS check that too? If the assembley has
> full
> trust, but the user does not have rights to the registry, how can I check
> if
> the user has rights or not?
>
> "john conwell" wrote:
>
>> I need to check if the user of the app has IO and Registy rights. How do
>> I
>> "Assert" that the current user of a WinForm app has these rights?
>>
>> Thanks,
>> John
- Next message: john conwell: "Re: Check for certian privileges"
- Previous message: john conwell: "RE: Check for certian privileges"
- In reply to: john conwell: "RE: Check for certian privileges"
- Next in thread: john conwell: "Re: Check for certian privileges"
- Reply: john conwell: "Re: Check for certian privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|