#include <winexe_pe.h>
Public Member Functions | |
void | clear () |
bool | loadFromEXE (SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle=DisposeAfterUse::YES) |
const Array< WinResourceID > | getTypeList () const |
const Array< WinResourceID > | getIDList (const WinResourceID &type) const |
const Array< WinResourceID > | getLangList (const WinResourceID &type, const WinResourceID &id) const |
SeekableReadStream * | getResource (const WinResourceID &type, const WinResourceID &id) |
SeekableReadStream * | getResource (const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang) |
String | loadString (uint32 stringID) |
Public Member Functions inherited from Common::WinResources | |
virtual bool | loadFromEXE (const Path &fileName) |
virtual bool | loadFromCompressedEXE (const Path &fileName) |
VersionInfo * | getVersionResource (const WinResourceID &id) |
Protected Member Functions | |
VersionInfo * | parseVersionInfo (SeekableReadStream *stream) |
Additional Inherited Members | |
Public Types inherited from Common::WinResources | |
typedef Common::HashMap< Common::String, Common::U32String, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo > | VersionHash |
Static Public Member Functions inherited from Common::WinResources | |
static WinResources * | createFromEXE (const Path &fileName) |
static WinResources * | createFromEXE (SeekableReadStream *stream) |
A class able to load resources from a Windows Portable Executable, such as cursors, bitmaps, and sounds.
|
virtual |
Clear all information.
Implements Common::WinResources.
|
virtual |
Load from a stream.
Implements Common::WinResources.
const Array<WinResourceID> Common::PEResources::getTypeList | ( | ) | const |
Return a list of resource types.
|
virtual |
Return a list of IDs for a given type.
Implements Common::WinResources.
|
virtual |
Return a list of languages for a given type and ID.
Reimplemented from Common::WinResources.
|
virtual |
Return a stream to the specified resource, taking the first language found (or 0 if non-existent).
Implements Common::WinResources.
|
virtual |
Return a stream to the specified resource (or 0 if non-existent).
Reimplemented from Common::WinResources.
|
virtual |
Get a string from a string resource.
Implements Common::WinResources.