The same way. You write your manifest XML file, include the relevant entry in your application's RC file, and rebuild your application.
Your PRO file:
...
RC_FILE = coolapp.rc
...
...
RC_FILE = coolapp.rc
...
To copy to clipboard, switch view to plain text mode
Your coolapp.rc file:
#include <windows.h>
ID_ICON ICON DISCARDABLE "coolapp_desktop.ico"
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "coolapp.exe.manifest"
#include <windows.h>
ID_ICON ICON DISCARDABLE "coolapp_desktop.ico"
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "coolapp.exe.manifest"
To copy to clipboard, switch view to plain text mode
Your manifest file (coolapp.exe.manifest):
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="2.0.0.0" processorArchitecture="X86"
name="gokulnathvc.coolapp" type="win32" />
<description>Gokulnathvc Really Cool App</description>
<dependency />
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<!-- padding to four-byte multiple file size including the byte order mark -->
<!-- padding 123 -->
</assembly>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="2.0.0.0" processorArchitecture="X86"
name="gokulnathvc.coolapp" type="win32" />
<description>Gokulnathvc Really Cool App</description>
<dependency />
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<!-- padding to four-byte multiple file size including the byte order mark -->
<!-- padding 123 -->
</assembly>
To copy to clipboard, switch view to plain text mode
You will need to adapt that manifest to set the requested execution level. (You can probably ignore the comment about padding, it works around a bug with early compilers the specifics of which I cannot quite remember)
Bookmarks