this isn't really a ddk thing but you guys are smart so I'm wondering if you
can help me. I want to read data from the resources section of an exe pe
header, i.e. Product Name, Internal Name, etc. Does anyone know if there is
an api for this?

I really dont want to have to map the exe into memory and then start
searching through the header! I've looked through all of the shell api and
can't find anything to do this.

Thanks.

Re: resources in pe header by Gary

Gary
Fri Jun 23 12:31:23 CDT 2006

There is an ancient tomb called "Microsotft Encylopedia" that describes the
PE header. You might also look at the system internal tombs that have been
released. I haven't seen it in th ere but then I was not looking for PE
information. Of course ... have you Googled it? I got tons of hits on MSN
Search.

--
The personal opinion of
Gary G. Little


"mirage2k2" <mirage2k2@discussions.microsoft.com> wrote in message
news:8EAD5EA0-4FD2-444A-9E45-87CCAEEF26BB@microsoft.com...
> this isn't really a ddk thing but you guys are smart so I'm wondering if
> you
> can help me. I want to read data from the resources section of an exe pe
> header, i.e. Product Name, Internal Name, etc. Does anyone know if there
> is
> an api for this?
>
> I really dont want to have to map the exe into memory and then start
> searching through the header! I've looked through all of the shell api
> and
> can't find anything to do this.
>
> Thanks.



Re: resources in pe header by mirage2k2

mirage2k2
Fri Jun 23 18:27:01 CDT 2006

Yes I've googled it and have lots of information about pe headers ... but
none about an ms api that lets me get what I want easily. There seems to be
support in the headers for basic pe structures ... but not much support for
the resources section, i.e. version, dialogs, icons, etc.

"Gary G. Little" wrote:

> There is an ancient tomb called "Microsotft Encylopedia" that describes the
> PE header. You might also look at the system internal tombs that have been
> released. I haven't seen it in th ere but then I was not looking for PE
> information. Of course ... have you Googled it? I got tons of hits on MSN
> Search.
>
> --
> The personal opinion of
> Gary G. Little
>
>
> "mirage2k2" <mirage2k2@discussions.microsoft.com> wrote in message
> news:8EAD5EA0-4FD2-444A-9E45-87CCAEEF26BB@microsoft.com...
> > this isn't really a ddk thing but you guys are smart so I'm wondering if
> > you
> > can help me. I want to read data from the resources section of an exe pe
> > header, i.e. Product Name, Internal Name, etc. Does anyone know if there
> > is
> > an api for this?
> >
> > I really dont want to have to map the exe into memory and then start
> > searching through the header! I've looked through all of the shell api
> > and
> > can't find anything to do this.
> >
> > Thanks.
>
>
>

Re: resources in pe header by Pavel

Pavel
Fri Jun 23 22:11:09 CDT 2006

"mirage2k2" <mirage2k2@discussions.microsoft.com> wrote in message news:B13C5C25-0EDD-48A2-BB35-7BF53583A828@microsoft.com...
> Yes I've googled it and have lots of information about pe headers ... but
> none about an ms api that lets me get what I want easily. There seems to be
> support in the headers for basic pe structures ... but not much support for
> the resources section, i.e. version, dialogs, icons, etc.

Is this surprising? The kernel belongs to the Native subsystem;
resources are win32 stuff.

--PA



Re: resources in pe header by mirage2k2

mirage2k2
Fri Jun 23 23:45:02 CDT 2006

I'm looking for a user mode library to do this stuff, not kernel mode. I'm
just asking here because I think this is the right place to find a good
answer.

"Pavel A." wrote:

> "mirage2k2" <mirage2k2@discussions.microsoft.com> wrote in message news:B13C5C25-0EDD-48A2-BB35-7BF53583A828@microsoft.com...
> > Yes I've googled it and have lots of information about pe headers ... but
> > none about an ms api that lets me get what I want easily. There seems to be
> > support in the headers for basic pe structures ... but not much support for
> > the resources section, i.e. version, dialogs, icons, etc.
>
> Is this surprising? The kernel belongs to the Native subsystem;
> resources are win32 stuff.
>
> --PA
>
>
>

Re: resources in pe header by Pavel

Pavel
Sat Jun 24 15:32:11 CDT 2006

"mirage2k2" <mirage2k2@discussions.microsoft.com> wrote in message news:8F78BDFA-D874-44A6-9812-4203F196AE3E@microsoft.com...
> I'm looking for a user mode library to do this stuff, not kernel mode. I'm
> just asking here because I think this is the right place to find a good
> answer.

Still this isn't the best place to ask about resources but...

For version resource, there is a quite complete API:
GetFileVersionInfo, VerQueryValue.

For string tables: LoadString

Something on the binary formats you can find in MSDN library.
( looking at MSDL release of Q1/06 )

Windows User Experience ->
Windows Management ->
Windows User interface ->
Resources

This info could be organized much better, and is hard to use as is.

Perhaps on the web there's a better explanation of the resource formats
or even free resource manipulation library - but you have already googled
and not found much. so this is the situatuion...

Regards,
--PA



Re: resources in pe header by Maxim

Maxim
Sat Jun 24 16:12:58 CDT 2006

> For string tables: LoadString

Does not support several localized stringtables and explicit LCID spec, so, I
write my own version to support all of this.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Re: resources in pe header by mirage2k2

mirage2k2
Sun Jun 25 22:10:01 CDT 2006

Thanks ... this is exactly what I'm looking for!

"Pavel A." wrote:

> "mirage2k2" <mirage2k2@discussions.microsoft.com> wrote in message news:8F78BDFA-D874-44A6-9812-4203F196AE3E@microsoft.com...
> > I'm looking for a user mode library to do this stuff, not kernel mode. I'm
> > just asking here because I think this is the right place to find a good
> > answer.
>
> Still this isn't the best place to ask about resources but...
>
> For version resource, there is a quite complete API:
> GetFileVersionInfo, VerQueryValue.
>
> For string tables: LoadString
>
> Something on the binary formats you can find in MSDN library.
> ( looking at MSDL release of Q1/06 )
>
> Windows User Experience ->
> Windows Management ->
> Windows User interface ->
> Resources
>
> This info could be organized much better, and is hard to use as is.
>
> Perhaps on the web there's a better explanation of the resource formats
> or even free resource manipulation library - but you have already googled
> and not found much. so this is the situatuion...
>
> Regards,
> --PA
>
>
>