Never wrote manifestos to applications. It is necessary to make the program request admin access at startup. I know that somewhere in the manifest file it is necessary to write "requireAdministrator", only where I have no idea, because I don’t know the schema of the xml and the documentation is somehow small.
IDE - NetBeans, compiler - MinGW, build static.
How to describe and manifest this manifest from resources?
windres res.rc -o res.o, inres.rcline1 24 ".manifest", in.manifest-<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel></requestedPrivileges></security></trustInfo></assembly>- J. Doe