A
Anders K. Olsen
Hello group
I'm developing an C# Windows Forms application that I would like to deploy
using ClickOnce.
One of the computers that the application is deployed on, is a computer that
is always loged on as a generic "controlroom" user. This is necessary for
some of the other applications running on the computer.
On my application, the user should always logon as himself or herself.
Therefore I need to present a login form to the user as the first thing.
I have been considering using RunAs, but I'm not sure that is possible along
with ClickOnce, at least nok using the GUI of RunAs.
I have looked at the Windows API LogonUser, but that seems to be requiring
unsafe code permissions and FullTrust, and I was hoping that I could avoid
giving those permissions to the application, especially when I'm deploying
it using ClickOnce.
Do you have any alternative suggestions?
Thank you for your answer.
Regards
Anders Olsen
I'm developing an C# Windows Forms application that I would like to deploy
using ClickOnce.
One of the computers that the application is deployed on, is a computer that
is always loged on as a generic "controlroom" user. This is necessary for
some of the other applications running on the computer.
On my application, the user should always logon as himself or herself.
Therefore I need to present a login form to the user as the first thing.
I have been considering using RunAs, but I'm not sure that is possible along
with ClickOnce, at least nok using the GUI of RunAs.
I have looked at the Windows API LogonUser, but that seems to be requiring
unsafe code permissions and FullTrust, and I was hoping that I could avoid
giving those permissions to the application, especially when I'm deploying
it using ClickOnce.
Do you have any alternative suggestions?
Thank you for your answer.
Regards
Anders Olsen