0

In C++ I want to launch a process from my Desktop Application in "Local System account" or "System Context". My application executes with admin privileges.

Is it possible? How?

Thanks in advance.

Rahul
  • 1,401
  • 4
  • 17
  • 33

1 Answers1

1

You can do what SysRun does: install a system service and launch the app from the service.

Luke
  • 11,211
  • 2
  • 27
  • 38
  • Thanks for replying but I want to write C++ code for it. I don't want to use third party executable. – Rahul Aug 05 '11 at 05:09
  • You can write your own implementation of the service. – Luke Aug 08 '11 at 15:47
  • In your suggestion I need to create a temp service and write code inside the service. My concern is whether it's a standard practice or a work around. – Rahul Aug 17 '11 at 14:23
  • Launching a process as LocalSystem in general is not standard practice. – Luke Aug 17 '11 at 18:30