flat assembler
Message board for the users of flat assembler.

Index > Windows > adding manifest to executable.

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 14 Jun 2011, 09:07
Hello everyone! Does anyone know how to add manifest to source that will require administrator privileges ? I was searching about it but I found only for Visual Studio.. I'm interested how to add it to source code of FASM..
For example, I have application that won't run without administrator privileges (Win7/Vista). I found some applications resource has something simmilar like this:
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="App1" type="win32"></assemblyIdentity><description>TestVista Program</description><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.VC80.OpenMP" version="8.0.50727.762" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity></dependentAssembly></dependency><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges></security></trustInfo></assembly>    

Resource name = Configuration Files
Resource ID = 1
And after executing application with this manifest, it says that I need to run it with administrator privileges..
Can anyone help me for that ? Thank you! Smile
Post 14 Jun 2011, 09:07
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 14 Jun 2011, 14:11
Post 14 Jun 2011, 14:11
View user's profile Send private message Visit poster's website Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 14 Jun 2011, 16:12
revolution
Ohh.. Sorry.. Thank you for reply.. Smile
Post 14 Jun 2011, 16:12
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 14 Jun 2011, 20:24
1 more thing, I can't understand what alot from these means.. Can someone give me some tutorial how to understand these resource things ?
for example, the code:
Code:
section '.rsrc' resource data readable
directory 24,manifests
resource manifests,1,LANG_NEUTRAL,manifest
resdata manifest
file 'conf.xml'
endres    

what does "directory 24,manifests" do ? and how I should know what to do there? Thanks.
Post 14 Jun 2011, 20:24
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 14 Jun 2011, 20:49
Directory | http://msdn.microsoft.com/en-us/library/ms680305%28v=VS.85%29.aspx

24 | Resource type ( Manifest in this case). Some are I.e dialog, menu etc

manifests| Label identifying where the table of the resource is located at, in the resource directory.


I hope that answers it. Very Happy
Post 14 Jun 2011, 20:49
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 15 Jun 2011, 07:39
typedef
I understand but where I can find resource types ?
Thanks.
Post 15 Jun 2011, 07:39
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.