Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29605 Discussions

Running an application as a virtual user?

michael_green
Beginner
1,123 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
1,123 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