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?

  • it seems like you need to compile windres res.rc -o res.o , in res.rc line 1 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
  • And in res.h, you don’t need to write anything about it? And the manifest isn’t mentioned in the code itself? Just compile it and it will pull up, so? - Iceman
  • In .h nothing, this is a resource and it can be in the file separately. The number 24 in the .rc file is the RT_MANIFEST type, how it works there I myself do not know - J. Doe
  • Thank! Write the answer, I like. The truth is it is not clear what the "1 24", I wrote instead APP_MANIFEST MANIFEST "filename_name.exe.manifest" - did not work, and 1 24 is normal. Where to read about it do not tell? - Iceman Nov.

0