Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
Question.net Trust Level to Medium In IIS Pin
ShwetaArora9-Feb-15 4:08
professionalShwetaArora9-Feb-15 4:08 
QuestionJaro - Winkler algorithm Pin
Sire_0079-Feb-15 3:33
Sire_0079-Feb-15 3:33 
AnswerRe: Jaro - Winkler algorithm Pin
Dave Kreskowiak9-Feb-15 3:46
mveDave Kreskowiak9-Feb-15 3:46 
AnswerRe: Jaro - Winkler algorithm Pin
Kornfeld Eliyahu Peter9-Feb-15 3:52
professionalKornfeld Eliyahu Peter9-Feb-15 3:52 
AnswerRe: Jaro - Winkler algorithm Pin
Eddy Vluggen9-Feb-15 5:48
professionalEddy Vluggen9-Feb-15 5:48 
QuestionLaunch WinApplication2 from WinApplication1 Pin
Jassim Rahma9-Feb-15 3:00
Jassim Rahma9-Feb-15 3:00 
AnswerRe: Launch WinApplication2 from WinApplication1 Pin
Pete O'Hanlon9-Feb-15 3:10
mvePete O'Hanlon9-Feb-15 3:10 
AnswerRe: Launch WinApplication2 from WinApplication1 Pin
Dave Kreskowiak9-Feb-15 3:50
mveDave Kreskowiak9-Feb-15 3:50 
No, you can't prevent someone from launching the other EXE.

Why? Because when a application is launched it's launched AS THE PERSON WHO LAUNCHED IT. This means the process inherits all the security permissions (called a security token) of the account that launched it. Any other process that this process launches also inherits the security token. When your first process launches a second one, it's doing it the exact same way you would. If you try to deny users from launching the second process independently of the first process, your first process won't be able to launch the second process either.

There is a way around this though. In your second process code, check to see if the first process is already running. If not, immediately quit the application.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

AnswerRe: Launch WinApplication2 from WinApplication1 Pin
Eddy Vluggen9-Feb-15 5:49
professionalEddy Vluggen9-Feb-15 5:49 
QuestionRepeater Pin
YASEEN AHMAD9-Feb-15 2:03
YASEEN AHMAD9-Feb-15 2:03 
AnswerRe: Repeater Pin
Richard MacCutchan9-Feb-15 2:47
mveRichard MacCutchan9-Feb-15 2:47 
AnswerRe: Repeater Pin
ZurdoDev9-Feb-15 2:50
professionalZurdoDev9-Feb-15 2:50 
QuestionThe grade of this programming Pin
Member 112935288-Feb-15 20:08
Member 112935288-Feb-15 20:08 
AnswerRe: The grade of this programming Pin
OriginalGriff8-Feb-15 20:45
mveOriginalGriff8-Feb-15 20:45 
GeneralRe: The grade of this programming Pin
Member 112935288-Feb-15 20:57
Member 112935288-Feb-15 20:57 
GeneralRe: The grade of this programming Pin
OriginalGriff8-Feb-15 21:28
mveOriginalGriff8-Feb-15 21:28 
GeneralRe: The grade of this programming Pin
OriginalGriff8-Feb-15 22:35
mveOriginalGriff8-Feb-15 22:35 
AnswerRe: The grade of this programming Pin
V.8-Feb-15 20:52
professionalV.8-Feb-15 20:52 
GeneralRe: The grade of this programming Pin
Member 112935288-Feb-15 21:10
Member 112935288-Feb-15 21:10 
GeneralRe: The grade of this programming Pin
V.8-Feb-15 21:19
professionalV.8-Feb-15 21:19 
GeneralRe: The grade of this programming Pin
OriginalGriff8-Feb-15 21:39
mveOriginalGriff8-Feb-15 21:39 
GeneralRe: The grade of this programming Pin
harold aptroot8-Feb-15 22:31
harold aptroot8-Feb-15 22:31 
AnswerRe: The grade of this programming Pin
BillWoodruff8-Feb-15 23:47
professionalBillWoodruff8-Feb-15 23:47 
AnswerRe: The grade of this programming Pin
Dave Kreskowiak9-Feb-15 3:52
mveDave Kreskowiak9-Feb-15 3:52 
AnswerRe: The grade of this programming Pin
Member 112935289-Feb-15 4:06
Member 112935289-Feb-15 4:06 

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.