Set the environment variable __compat_layer for your process to RunAsInvoker. If this environment variable is set, CreateProcess will succeed.
You can use the SetEnvironmentVariable function for this purpose.
More Related Contents:
- How to run a program automatically as admin on Windows 7 at startup?
- How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
- How do I make my GUI behave well when Windows font scaling is greater than 100%
- How to make a batch file delete itself?
- Privileges/owner issue when writing in C:\ProgramData\
- port forwarding in windows
- How to call LogonUser() to get a non-restricted full token inside a Windows Service with UAC enabled?
- Why does only the first line of this Windows batch file execute but all three lines execute in a command shell?
- Documentation and API Samples for drawing on Windows Aero Glass (DWM, GDI, GDI+) for all Win32 programmers
- How do you disable ASLR (address space layout randomization) on Windows 7 x64?
- What is after Internet Explorer 11 on Windows 7? How well will ES2016 be supported in enterprises?
- The UAC prompt shows a temporary random Program Name for msi, can the correct name be displayed?
- Where does Microsoft Windows’ 7 POSIX implementation currently stand?
- Git rename from index.lock to index failed
- What precisely does ‘Run as administrator’ do? [closed]
- Taskkill /f doesn’t kill a process
- How do I create a manifest file to launch application with admin privileges?
- How to prevent uninstaller elevating for Standard Windows 10 user?
- how to empty recyclebin through command prompt?
- Do high-integrity tokens *have* to have the Administrators group enabled?
- How to use enable pseudo-locale in Windows for testing?
- How do I escape ampersands in batch files?
- How to use random in BATCH script?
- Why does %date% produce a different result in batch file executed as scheduled task?
- Node.js/Windows error: ENOENT, stat ‘C:\Users\RT\AppData\Roaming\npm’
- In Windows cmd, how do I prompt for user input and use the result in another command?
- How to set the PATH environment variable in Jenkins configuration on Windows?
- Why “The system cannot find the batch label specified” is thrown even if label exists?
- How to I launch a ruby script from the command line by just its name?
- How to install NodeJS project locally without internet connection?