0

I have searched and wondered how certain programs ask you to let them have administrator permissions when you start them up normally but haven't really found any good answer, I suppose they use something in Windows API but I haven't found anything that would help me.

  • 2
    ` ` in manifest – RbMm Nov 18 '21 at 18:56
  • 2
    @RichardCritten [`autoElevate`](https://stackoverflow.com/a/24965735/6401656) this is another thing. but here need exactly `` – RbMm Nov 18 '21 at 19:51
  • Is there a way to add a manifest file to a DevC++ project? – Radioactive Epic Face Nov 18 '21 at 20:24
  • 1
    different ways exist. maifest this is resourse. with `RT_MANIFEST` type and `CREATEPROCESS_MANIFEST_RESOURCE_ID` name for exe. so write manifest text file and include it in *.rc* as `CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "my_manifest"` – RbMm Nov 18 '21 at 20:27
  • Where `CREATEPROCESS_MANIFEST_RESOURCE_ID` is defined as 1, and `RT_MANIFEST` is defined as 24 – Remy Lebeau Nov 18 '21 at 21:35

1 Answers1

1

 Add a manifest file into your EXE as described here:

http://msdn.microsoft.com/en-us/library/bb756929.aspx

user11717481
  • 1
  • 9
  • 15
  • 25