简体   繁体   中英

Block an exe from opening and open only if

I wana block an exe from opening if user double clicks on it or right click and open it. I wana make the exe open only through code like Fplatformprocess:createproc() or something similiar.

Is this possible??

Is this possible??

No.

Irrespective of the application used to launch a program (such as explorer.exe), the code will ultimately have to call into the system (usually through the Win32 CreateProcess API). Incidentally, that's what the FPlatformProcess:CreateProc() implementation uses on Windows as well.

You cannot have a system API call that both succeeds and fails at the same time, in the same environment, given the same input.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM