Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29284 Discussions

Running an application as a virtual user?

michael_green
Beginner
337 Views
Hi all,
For security reasons I want to run my application as a virtual user - the virtual user has appropriate privileges while all the real users don't. I have got this working using a piece of freeware from the web but when I CreateProcess to run this freeware it initially flashes a DOS window over my application, which is very annoying.
So I was wondering if anyone knows how it could be done directly from Fortran? I need to run the application as myself initially, and very early on, the application logs in again as the virtual user and exits my original process.
Any suggestions or insights would be very welcome.
Many thanks
Mike
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
337 Views
I admit that this Windows security stuff is Greek to me; however, your best bet could be Google group search. Use "LogonUser", "CreateProcessAsUser" and/or "ImpersonateLoggedOnUser" as keywords. (This stuff turns out often in newsgroups, but I never bothered to get into it).
0 Kudos
Reply