Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
AnswerRe: MultiThreading Pin
Luc Pattyn9-Nov-10 1:37
sitebuilderLuc Pattyn9-Nov-10 1:37 
QuestionReturn all form controls to default state Pin
kruegs358-Nov-10 17:20
kruegs358-Nov-10 17:20 
AnswerRe: Return all form controls to default state Pin
Luc Pattyn8-Nov-10 17:26
sitebuilderLuc Pattyn8-Nov-10 17:26 
QuestionCan you gain administrator permission in .NET program? Pin
John Kenedy S.Kom8-Nov-10 16:08
John Kenedy S.Kom8-Nov-10 16:08 
AnswerRe: Can you gain administrator permission in .NET program? Pin
Jacob D Dixon8-Nov-10 17:44
Jacob D Dixon8-Nov-10 17:44 
AnswerRe: Can you gain administrator permission in .NET program? Pin
David Ewen8-Nov-10 17:55
professionalDavid Ewen8-Nov-10 17:55 
GeneralRe: Can you gain administrator permission in .NET program? Pin
John Kenedy S.Kom9-Nov-10 0:41
John Kenedy S.Kom9-Nov-10 0:41 
GeneralRe: Can you gain administrator permission in .NET program? Pin
Dave Kreskowiak9-Nov-10 2:05
mveDave Kreskowiak9-Nov-10 2:05 
John Kenedy S.Kom wrote:
Why microsoft need to limit the privileges of executable?


Any executable runs AS the user that launched it. There are no special restrictions on .EXE's of different types.

The "security" model you're assuming is not correct. When you install, say, an anti-virus engine, it installs a service that is actually doing all the work. It usually runs under the Local System account, which has pretty much admin priv's to the entire machine. Any UI program that you use to interact with this anti-virus app always runs as YOU. This app talks to the service and tells the service what it needs to do. The service runs as the local system, giving you the ILLUSION that what you ran has admin priv's.


John Kenedy S.Kom wrote:
for example, what if the application is extendable, where it can download new version or its plugin and put it in it's executable directory


Writing to the Program Files fold is off-limits to normal users, but not admins. But, an .EXE can be installed to other locations that the user CAN write to. All it takes is for the updater to copy down the new .EXE to the correct location, but always the one you think it does. It's also possible that when the app was installed, the security for the apps folder under the Program Files folder was opened up to allow users to write to it.

Installers are written to run under administrator accounts, meaning they have free reign to configure the system, security, accounts, ... anything it needs to get the app installed and the rights it needs to do whatever it needs to.

GeneralRe: Can you gain administrator permission in .NET program? Pin
John Kenedy S.Kom9-Nov-10 14:32
John Kenedy S.Kom9-Nov-10 14:32 
GeneralRe: Can you gain administrator permission in .NET program? Pin
Dave Kreskowiak9-Nov-10 18:37
mveDave Kreskowiak9-Nov-10 18:37 
GeneralRe: Can you gain administrator permission in .NET program? Pin
David Ewen9-Nov-10 12:00
professionalDavid Ewen9-Nov-10 12:00 
QuestionAbout AutoResetEvent, a simple question Pin
jason_mf8-Nov-10 1:15
jason_mf8-Nov-10 1:15 
AnswerRe: About AutoResetEvent, a simple question Pin
Luc Pattyn8-Nov-10 1:42
sitebuilderLuc Pattyn8-Nov-10 1:42 
GeneralRe: About AutoResetEvent, a simple question Pin
RaviRanjanKr8-Nov-10 1:58
professionalRaviRanjanKr8-Nov-10 1:58 
GeneralRe: About AutoResetEvent, a simple question Pin
John Kenedy S.Kom8-Nov-10 16:11
John Kenedy S.Kom8-Nov-10 16:11 
QuestionDataGridView Pin
yesu prakash8-Nov-10 0:31
yesu prakash8-Nov-10 0:31 
AnswerRe: DataGridView Pin
Mycroft Holmes8-Nov-10 11:14
professionalMycroft Holmes8-Nov-10 11:14 
Questionretrieving listview values Pin
annie_bel8-Nov-10 0:13
annie_bel8-Nov-10 0:13 
AnswerRe: retrieving listview values Pin
phil.o8-Nov-10 0:19
professionalphil.o8-Nov-10 0:19 
GeneralRe: retrieving listview values Pin
annie_bel8-Nov-10 0:40
annie_bel8-Nov-10 0:40 
AnswerRe: retrieving listview values Pin
Luc Pattyn8-Nov-10 1:23
sitebuilderLuc Pattyn8-Nov-10 1:23 
AnswerRe: retrieving listview values Pin
RaviRanjanKr8-Nov-10 1:29
professionalRaviRanjanKr8-Nov-10 1:29 
GeneralRe: retrieving listview values Pin
annie_bel8-Nov-10 1:50
annie_bel8-Nov-10 1:50 
AnswerRe: retrieving listview values Pin
saransaki088-Nov-10 21:25
saransaki088-Nov-10 21:25 
GeneralRe: retrieving listview values Pin
RaviRanjanKr9-Nov-10 1:12
professionalRaviRanjanKr9-Nov-10 1:12 

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.