Applications must be running as administrator. How to ask the user it? How to verify that he agreed? How to find out if applications are already running as administrator, so as not to ask, or it is not necessary?
Did as described here by user ChrisW67. The result is not received. If possible, give an example of a "Hella Vord" project.
PS in the example, and I have architecture 86. At 64, do I need to change something? Windows 7 operating system. I am writing in Qt Creator. Qt5
sbits. A.out simple program simply makes the file "xaxa" avp @ avp-ubu1: avparse $ ./a.out uid: 1000 euid: 1000 avp @ avp-ubu1: avparse $ ll xaxa -rw-rw-r-- 1 avp avp 0 May 8 20:01 xaxa avp @ avp-ubu1: avparse $ sudo chown root a.out avp @ avp-ubu1: avparse $ sudo chmod + s a.out avp @ avp-ubu1: avparse $ ./a.out uid: 1000 euid: 0 avp @ avp-ubu1: avparse $ ll xaxa -rw-rw-r-- 1 root avp 0 May 8 20:02 xaxa avp @ avp-ubu1: avparse $ See? - avpssh(only it will have to be run via pty to feed the root password. To simplify programming, seeman forkpty) orsu. However, they can be closed for root. Then ... You need to look at the specific configuration (this is like a rootkit to slip into the system). - avp