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