Skip to content

Commit

Permalink
add a manifest to request Administrator permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
hackedd committed Oct 4, 2013
1 parent be378c6 commit 6eaf59f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.rc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
IDI_ICON1 ICON DISCARDABLE "resource\\ext2explore.ico"
#include <windows.h>

IDI_ICON1 ICON DISCARDABLE "resource\\ext2explore.ico"
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "resource\\manifest.xml"
10 changes: 10 additions & 0 deletions resource/manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
<v3:security>
<v3:requestedPrivileges>
<v3:requestedExecutionLevel level="requireAdministrator"/>
</v3:requestedPrivileges>
</v3:security>
</v3:trustInfo>
</assembly>

0 comments on commit 6eaf59f

Please sign in to comment.