That works. Did require x86 to be lower case.
For any lurkers:
Load admin.rc 1 24 admin.xml into compiler and click compile.
That creates admin.res which then creates admin.pbr which
is loaded into final program with the line #RESOURCE "admin.pbr"
Not sure if all programs should use a manifest like this by changing
name = "topdog.exe" to name="program name goes here.exe"?
admin.xml
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="x86" name = "topdog.exe" type = "win32" /> <description>elevation</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> </requestedPrivileges> </security> </trustInfo> </assembly>
Code:
1 24 admin.xml
Leave a comment: