XPE .Net App problem with restricted user

  • Thread starter Thread starter Mario
  • Start date Start date
M

Mario

Hi all, I have a little problem, perhaps anyone has a good idea on that:

I have a .Net C# app running on my XPE.

Actualy the act user is a limited account (only User, so minimum rights).
I start the application with RunAs, so that my application has admin
rights...

The App throws an exeption, when I tries to access DirectPlay...

The funny thing is, that when I start once the App at user Administrator,
the app works well!
After that the app also works well under the User Account....

The only thing which is necessary, is to start the app once as logged in
administrator..

any ideas how to find out whats the problem?

thanks in advance..

mario
 
this is the exeption which is always thrown:

System.Exception: Exception of type System.Exception was thrown./ at
Microsoft.DirectX.DirectPlay.Address..ctor()/
 
Mario,
If the account that is shelling your app only has user privileges, then you
will not be able to run it with more rights than that account. Perhaps if
you had the system start the app for you this might work. For example, if
you had a service that started the app (admin privileges) or if you started
it from the registry with the computer.

Regards,

Sean Gahan
 
I start the app with RunAs.exe, so my App is running under the Administrator
Account.
So I am absolutly sure, that I have the Admin rights. (checked with
taskmanager)
 
Hi Mario,

..Net framework internals unfortunately are not my good side, but have you checked this scenario on Windows XP Professional?
Try from limited user on XPP to do same thing, what happens?

I would never rely on functionality and good will of runas application or any other application.

Read more about API command CreateProcessWithLogonW and its parameters especially switch LOGON_WITH_PROFILE

Best regards,
Slobodan
 
Back
Top