OWLNext 6.32
Classes | Enumerations | Enumerator | Functions | Variables | Friends
Module and application management classes

Classes

class  owl::TAppDictionary
class  owl::TApplication
class  owl::TLangModule
 International resource support: [APP]ENG.DLL - default application module. More...
class  owl::TModule
class  owl::TModuleVersionInfo
 TModuleVersionInfo provides access to a TModule's VERSIONINFO resource. More...
class  owl::TXInvalidModule
class  owl::TXModuleVersionInfo
 Exception class for TModuleVersionInfo. [VH 2005-04-03]. More...
class  owl::TSystemMessage
class  owl::TErrorMode
class  owl::TDllLoader< T >
 TDllLoader<> provides an easy way to load one instance of a DLL on demand. More...
class  owl::TModuleProc
class  owl::TUser
 delay loading USER :), just for some memory/resource check programs More...
class  owl::TVersion
 delay loading VERSION.DLL More...
class  owl::TOle
 delay loading Ole32.DLL/COMPOBJ.DLL More...
class  owl::TOleAuto
 delay loading OLEAUT32.DLL/OLE2DISP.DLL More...

Enumerations

enum  owl::TModuleVersionInfo::TFileType { TypeUnknown = VFT_UNKNOWN, App = VFT_APP, DLL = VFT_DLL, DevDriver = VFT_DRV, Font = VFT_FONT, VirtDevice = VFT_VXD, StaticLib = VFT_STATIC_LIB }
enum  owl::TModuleVersionInfo::TFileSubType {
  owl::TModuleVersionInfo::UnknownDevDriver, owl::TModuleVersionInfo::PtrDriver, owl::TModuleVersionInfo::KybdDriver, owl::TModuleVersionInfo::LangDriver, owl::TModuleVersionInfo::DisplayDriver, owl::TModuleVersionInfo::MouseDriver, owl::TModuleVersionInfo::NtwkDriver, owl::TModuleVersionInfo::SysDriver, owl::TModuleVersionInfo::InstallableDriver, owl::TModuleVersionInfo::SoundDriver,
  owl::TModuleVersionInfo::UnknownFont, owl::TModuleVersionInfo::RasterFont, owl::TModuleVersionInfo::VectorFont, owl::TModuleVersionInfo::TrueTypeFont
}

Functions

 owl::TModule::TModule (const tstring &name, bool shouldLoad=true, bool mustLoad=true, bool addToList=true)
 owl::TModule::TModule (const tstring &name, THandle handle, bool addToList=true)
 owl::TModule::TModule (const tstring &name, THandle handle, const tstring &cmdLine, bool addToList=true)
virtual owl::TModule::~TModule ()
void owl::TModule::InitModule (THandle handle, const tstring &cmdLine)
virtual int owl::TModule::Error (TXBase &x, uint captionResId, uint promptResId=0)
void owl::TModule::SetHandle (THandle handle)
 owl::TModuleVersionInfo::TModuleVersionInfo (TModule::THandle module)
 owl::TModuleVersionInfo::TModuleVersionInfo (const tstring &modFName)
VS_FIXEDFILEINFO & owl::TModuleVersionInfo::GetFixedInfo ()
uint32 owl::TModuleVersionInfo::GetSignature () const
uint32 owl::TModuleVersionInfo::GetStrucVersion () const
uint32 owl::TModuleVersionInfo::GetFileVersionMS () const
uint32 owl::TModuleVersionInfo::GetFileVersionLS () const
uint32 owl::TModuleVersionInfo::GetProductVersionMS () const
uint32 owl::TModuleVersionInfo::GetProductVersionLS () const
bool owl::TModuleVersionInfo::IsFileFlagSet (uint32 flag) const
uint32 owl::TModuleVersionInfo::GetFileFlagsMask () const
uint32 owl::TModuleVersionInfo::GetFileFlags () const
bool owl::TModuleVersionInfo::IsDebug () const
bool owl::TModuleVersionInfo::InfoInferred () const
bool owl::TModuleVersionInfo::IsPatched () const
bool owl::TModuleVersionInfo::IsPreRelease () const
bool owl::TModuleVersionInfo::IsPrivateBuild () const
bool owl::TModuleVersionInfo::IsSpecialBuild () const
uint32 owl::TModuleVersionInfo::GetFileOS () const
TFileType owl::TModuleVersionInfo::GetFileType () const
uint32 owl::TModuleVersionInfo::GetFileSubType () const
FILETIME owl::TModuleVersionInfo::GetFileDate () const
bool owl::TModuleVersionInfo::GetInfoString (LPCTSTR str, LPCTSTR &value, uint lang=0)
bool owl::TModuleVersionInfo::GetFileDescription (LPCTSTR &fileDesc, uint lang=0)
bool owl::TModuleVersionInfo::GetFileVersion (LPCTSTR &fileVersion, uint lang=0)
bool owl::TModuleVersionInfo::GetInternalName (LPCTSTR &internalName, uint lang=0)
bool owl::TModuleVersionInfo::GetLegalCopyright (LPCTSTR &copyright, uint lang=0)
bool owl::TModuleVersionInfo::GetOriginalFilename (LPCTSTR &originalFilename, uint lang=0)
bool owl::TModuleVersionInfo::GetProductName (LPCTSTR &prodName, uint lang=0)
bool owl::TModuleVersionInfo::GetProductVersion (LPCTSTR &prodVersion, uint lang=0)
bool owl::TModuleVersionInfo::GetSpecialBuild (LPCTSTR &debug, uint lang=0)
tstring owl::TModuleVersionInfo::GetInfoString (const tstring &str, uint lang=0)
tstring owl::TModuleVersionInfo::GetFileDescription (uint lang=0)
tstring owl::TModuleVersionInfo::GetFileVersion (uint lang=0)
tstring owl::TModuleVersionInfo::GetInternalName (uint lang=0)
tstring owl::TModuleVersionInfo::GetLegalCopyright (uint lang=0)
tstring owl::TModuleVersionInfo::GetOriginalFilename (uint lang=0)
tstring owl::TModuleVersionInfo::GetProductName (uint lang=0)
tstring owl::TModuleVersionInfo::GetProductVersion (uint lang=0)
tstring owl::TModuleVersionInfo::GetSpecialBuild (uint lang=0)
uint owl::TModuleVersionInfo::GetLanguage () const
tstring owl::TModuleVersionInfo::GetLanguageName () const
static tstring owl::TModuleVersionInfo::GetLanguageName (uint language)
void owl::TModuleVersionInfo::Init (LPCTSTR modFName)
void owl::TXInvalidModule::Throw ()
static void owl::TXInvalidModule::Raise (const tstring &name=tstring())
void owl::TXModuleVersionInfo::Throw ()
static void owl::TXModuleVersionInfo::Raise (const tstring &name=tstring())
 owl::TSystemMessage::TSystemMessage (uint32 error, TLangId langId=LangNeutral)
int owl::TSystemMessage::MessageBox (TWindow *wnd, const tstring &msg, const tstring &title, uint flags=MB_OK)
const tstring & owl::TSystemMessage::SysMessage () const
const uint32 owl::TSystemMessage::SysError () const
void owl::TSystemMessage::Init (TLangId langId)
 owl::TErrorMode::~TErrorMode ()
 owl::TDllLoader::TDllLoader ()
 owl::TDllLoader::~TDllLoader ()
static bool owl::TDllLoader::IsAvailable ()
static T * owl::TDllLoader::Dll ()

Variables

uint8 * owl::TModuleVersionInfo::Buff
uint32 owl::TModuleVersionInfo::Lang
VS_FIXEDFILEINFO * owl::TModuleVersionInfo::FixedInfo
uint32 owl::TSystemMessage::Error
tstring owl::TSystemMessage::Message

Friends

std::ostream & owl::TModule::operator<< (std::ostream &os, const TModule &m)

Get & set members. Use these instead of directly accessing members

LPCTSTR owl::TModule::GetName () const
void owl::TModule::SetName (const tstring &name)
THandle owl::TModule::GetHandle () const
 owl::TModule::operator THandle () const
bool owl::TModule::operator== (const TModule &m) const
bool owl::TModule::IsLoaded () const

Windows HINSTANCE/HMODULE related API functions encapsulated

int owl::TModule::GetModuleFileName (TCHAR *buff, int maxChars) const
tstring owl::TModule::GetModuleFileName () const
FARPROC owl::TModule::GetProcAddress (TNarrowResId) const
HRSRC owl::TModule::FindResource (TResId id, TResId type) const
HRSRC owl::TModule::FindResourceEx (TResId id, TResId type, TLangId langId=LangNeutral) const
HGLOBAL owl::TModule::LoadResource (HRSRC hRsrc) const
uint32 owl::TModule::SizeofResource (HRSRC hRsrc) const
int owl::TModule::LoadString (uint id, TCHAR *buf, int maxChars) const
tstring owl::TModule::LoadString (uint id) const
HBITMAP owl::TModule::LoadBitmap (TResId id) const
bool owl::TModule::GetClassInfo (TResId name, WNDCLASS *wndclass) const
HACCEL owl::TModule::LoadAccelerators (TResId id) const
HMENU owl::TModule::LoadMenu (TResId id) const
HCURSOR owl::TModule::LoadCursor (TResId id) const
HICON owl::TModule::LoadIcon (TResId name) const
HICON owl::TModule::CopyIcon (HICON hIcon) const

Global search for resources

static TModule * owl::TModule::FindResModule (TResId id, TResId type)
static TModule * owl::TModule::NextModule (TModule *module=0)

Detailed Description

Derived from TModule, TApplication supplies functionality common to all ObjectWindows applications. Classes derived from TApplication have the ability to create instances of a class, create main windows, and process messages. TModule defines behavior shared by both library (DLL) and application modules. Virtually derived from TModule.


Enumeration Type Documentation

TFileSubType values are returned by GetFileSubType() if GetFileType.

Enumerator:
UnknownDevDriver 

VFT2_UNKNOWN.

PtrDriver 

VFT2_DRV_PRINTER.

KybdDriver 

VFT2_DRV_KEYBOARD.

LangDriver 

VFT2_DRV_LANGUAGE.

DisplayDriver 

VFT2_DRV_DISPLAY.

MouseDriver 

VFT2_DRV_MOUSE.

NtwkDriver 

VFT2_DRV_NETWORK.

SysDriver 

VFT2_DRV_SYSTEM.

InstallableDriver 

VFT2_DRV_INSTALLABLE.

SoundDriver 

VFT2_DRV_SOUND.

UnknownFont 

VFT2_UNKNOWN.

RasterFont 

VFT2_FONT_RASTER.

VectorFont 

VFT2_FONT_VECTOR.

TrueTypeFont 

VFT2_FONT_TRUETYPE.

TFileType is returned by GetFileType()


Function Documentation

template<class T >
owl::TDllLoader< T >::TDllLoader ( )

Creates a dynamic copy of the DLL object (i.e. an instance of T) if we do not have one already...

owl::TModule::TModule ( const tstring &  name,
bool  shouldLoad = true,
bool  mustLoad = true,
bool  addToList = true 
)

Constructs a TModule object that is used as an alias for a DLL. If shouldLoad is true, TModule will automatically load and free the DLL. If shouldLoad is false, then the HInstance needs to be set later using InitModule.

"mustLoad" determines if a load failure should cause an exception throw

References owl::TXInvalidModule::Raise().

owl::TModule::TModule ( const tstring &  name,
THandle  handle,
bool  addToList = true 
)

Constructs a TModule object that is an alias for an already loaded DLL or program with an available HInstance. When the TModule is destructed, the instance isn't automatically freed. name, which is optional, can be 0. No cmdLine is set up

owl::TModule::TModule ( const tstring &  name,
THandle  handle,
const tstring &  cmdLine,
bool  addToList = true 
)

Constructs a TModule object for an ObjectWindows DLL or program from within LibMain or WinMain. Calls InitModule to initialize hInstance and cmdLine.

owl::TModuleVersionInfo::TModuleVersionInfo ( TModule::THandle  module)

Constructs a TModuleVersionInfo given a module or instance handle.

owl::TModuleVersionInfo::TModuleVersionInfo ( const tstring &  modFName)

Constructs a TModuleVersionInfo given a module filename String version. Throws TXModuleVersionInfo on errors. [VH 2005-04-03]

template<class T >
owl::TDllLoader< T >::~TDllLoader ( )

Deletes the dll object when we go away to release the dll from memory.

owl::TErrorMode::~TErrorMode ( ) [inline]

Destructor of TErrorMode object - restores the state of the error mode saved during construction of the object.

owl::TModule::~TModule ( ) [virtual]

Destructs a TModule, freeing the instance if appropriate, and deleting new'd strings

HICON owl::TModule::CopyIcon ( HICON  hIcon) const [inline]

Wrapper for the Windows API.

Copies the icon specified in hIcon. The return value is a handle to the icon or 0 if unsuccessful. When no longer required, the duplicate icon should be destroyed.

TModule * owl::TModule::FindResModule ( TResId  id,
TResId  type 
) [static]

Global search for resources.

HRSRC owl::TModule::FindResource ( TResId  id,
TResId  type 
) const [inline]

Wrapper for the Windows API to find a particular resource.

Finds the resource indicated by id and type and, if successful, returns a handle to the specified resource. If the resource cannot be found, the return value is zero. The id and type parameters either point to zero-terminated strings or specify an integer value. type can be one of the standard resource types defined below.

  • RT_ACCELERATOR Accelerator table
  • RT_BITMAP Bitmap
  • RT_CURSOR Cursor
  • RT_DIALOG Dialog box
  • RT_FONT Font
  • RT_FONTDIR Font directory
  • RT_ICON Icon
  • RT_MENU Menu
  • RT_RCDATA User-defined resource
  • RT_STRING String
HRSRC owl::TModule::FindResourceEx ( TResId  id,
TResId  type,
TLangId  langId = LangNeutral 
) const [inline]

Wrapper for the Windows API to find a particular resource.

WIN32: Finds the resource indicated by id and type and, if successful, returns a handle to the specified resource. If the resource cannot be found, the return value is zero. The id and type parameters either point to zero-terminated strings or specify an integer value. type can be one of the standard resource types defined below.

  • RT_ACCELERATOR Accelerator table
  • RT_BITMAP Bitmap
  • RT_CURSOR Cursor
  • RT_DIALOG Dialog box
  • RT_FONT Font
  • RT_FONTDIR Font directory
  • RT_ICON Icon
  • RT_MENU Menu
  • RT_RCDATA User-defined resource
  • RT_STRING String
bool owl::TModule::GetClassInfo ( TResId  name,
WNDCLASS *  wndclass 
) const [inline]

Wrapper for the Windows API.

Used particularly for subclassing, GetClassInfo gets information about the window class specified in wndclass. name points to a 0-terminated string that contains the name of the class. wndclass points to the WNDCLASS structure that receives information about the class. If successful, GetClassInfo returns nonzero. If a matching class cannot be found, GetClassInfo returns zero.

FILETIME owl::TModuleVersionInfo::GetFileDate ( ) const

Retrieves the file date.

tstring owl::TModuleVersionInfo::GetFileDescription ( uint  lang = 0)

Retrieves the file description information in the requested language id. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetFileDescription().

bool owl::TModuleVersionInfo::GetFileDescription ( LPCTSTR &  fileDesc,
uint  lang = 0 
)

Retrieves the file description information in the requested language id.

References owl::TModuleVersionInfo::GetInfoString().

uint32 owl::TModuleVersionInfo::GetFileOS ( ) const [inline]

returns TFileOS values

uint32 owl::TModuleVersionInfo::GetFileSubType ( ) const
tstring owl::TModuleVersionInfo::GetFileVersion ( uint  lang = 0)

Retrieves the file version information in the requested language id. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetFileVersion().

bool owl::TModuleVersionInfo::GetFileVersion ( LPCTSTR &  fileVersion,
uint  lang = 0 
)

Retrieves the file version information in the requested language id.

References owl::TModuleVersionInfo::GetInfoString().

uint32 owl::TModuleVersionInfo::GetFileVersionLS ( ) const [inline]

Get the minor file version (last 32-bits).

uint32 owl::TModuleVersionInfo::GetFileVersionMS ( ) const [inline]

Get the major file version (first 32-bits).

VS_FIXEDFILEINFO & owl::TModuleVersionInfo::GetFixedInfo ( ) [inline]

Return the version information about this module.

TModule::THandle owl::TModule::GetHandle ( ) const [inline]

Return the instance handle of the library module represented by the TModule obect.

bool owl::TModuleVersionInfo::GetInfoString ( LPCTSTR  str,
LPCTSTR &  value,
uint  lang = 0 
)

Queries any given "\\StringFileInfo\\lang-charset\\<str>" version. Info string lang indicates the language translation, may be 0 to signify file default.

References owl::TModuleVersionInfo::Buff, and owl::TModuleVersionInfo::Lang.

tstring owl::TModuleVersionInfo::GetInternalName ( uint  lang = 0)

Retrieves the internal name of the module. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetInternalName().

bool owl::TModuleVersionInfo::GetInternalName ( LPCTSTR &  internalName,
uint  lang = 0 
)

Retrieves the internal name of the module.

References owl::TModuleVersionInfo::GetInfoString().

uint owl::TModuleVersionInfo::GetLanguage ( ) const [inline]

Return the language id of this module.

tstring owl::TModuleVersionInfo::GetLanguageName ( uint  language) [static]

Gets the language name string associated with a language/charset code.

tstring owl::TModuleVersionInfo::GetLanguageName ( ) const [inline]

Return the language name of this module.

tstring owl::TModuleVersionInfo::GetLegalCopyright ( uint  lang = 0)

Retrieves the copyright message. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetLegalCopyright().

bool owl::TModuleVersionInfo::GetLegalCopyright ( LPCTSTR &  copyright,
uint  lang = 0 
)

Retrieves the copyright message.

References owl::TModuleVersionInfo::GetInfoString().

tstring owl::TModule::GetModuleFileName ( ) const

String-aware overload.

LPCTSTR owl::TModule::GetName ( ) const [inline]

Returns the name of the module.

tstring owl::TModuleVersionInfo::GetOriginalFilename ( uint  lang = 0)

Retrieves the original filename. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetOriginalFilename().

bool owl::TModuleVersionInfo::GetOriginalFilename ( LPCTSTR &  originalFilename,
uint  lang = 0 
)

Retrieves the original filename.

References owl::TModuleVersionInfo::GetInfoString().

FARPROC owl::TModule::GetProcAddress ( TNarrowResId  id) const [inline]

Returns the entry-point address of the specified exported function if found, otherwise returns NULL.

bool owl::TModuleVersionInfo::GetProductName ( LPCTSTR &  prodName,
uint  lang = 0 
)

Retrieves the product name this module is associated with.

References owl::TModuleVersionInfo::GetInfoString().

tstring owl::TModuleVersionInfo::GetProductName ( uint  lang = 0)

Retrieves the product name this module is associated with. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetProductName().

bool owl::TModuleVersionInfo::GetProductVersion ( LPCTSTR &  prodVersion,
uint  lang = 0 
)

Retrieves the version of the product.

References owl::TModuleVersionInfo::GetInfoString().

tstring owl::TModuleVersionInfo::GetProductVersion ( uint  lang = 0)

Retrieves the version of the product. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetProductVersion().

uint32 owl::TModuleVersionInfo::GetProductVersionLS ( ) const [inline]

Get the minor product version number (last 32-bits).

uint32 owl::TModuleVersionInfo::GetProductVersionMS ( ) const [inline]

Get the major product version number (first 32-bits).

tstring owl::TModuleVersionInfo::GetSpecialBuild ( uint  lang = 0)

Retrieves the special build number. String version. [VH 2005-04-03]

References owl::TModuleVersionInfo::GetSpecialBuild().

bool owl::TModuleVersionInfo::GetSpecialBuild ( LPCTSTR &  debug,
uint  lang = 0 
)

Retrieves the special build number.

References owl::TModuleVersionInfo::GetInfoString().

void owl::TModule::InitModule ( THandle  hInstance,
const tstring &  cmdLine 
)

Finish-up initialization of a module.

Performs any instance initialization necessary for the module. If the module cannot be created, a TXInvalidModule exception is thrown.

Copies cmd line, and gets proc instance handles for the standard procs.

References owl::TApplication::GetCmdLine().

template<class T >
bool owl::TDllLoader< T >::IsAvailable ( ) [static]

Load the dll on demand, returning true if it was loaded OK.

bool owl::TModuleVersionInfo::IsFileFlagSet ( uint32  flag) const [inline]

Return true if the flag has been set in the version info.

bool owl::TModule::IsLoaded ( ) const [inline]

Returns a nonzero value if the instance handle is loaded. Use this function primarily to ensure that a given instance is loaded.

HACCEL owl::TModule::LoadAccelerators ( TResId  id) const

Wrapper for the Windows API.

Loads the accelerator table resource specified by id. LoadAccelerators loads the table only if it has not been previously loaded. If the table has already been loaded, LoadAccelerators returns a handle to the loaded table.

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadAccelerators().

HBITMAP owl::TModule::LoadBitmap ( TResId  id) const

Wrapper for the Windows API.

Loads the bitmap resource specified by id. If the bitmap cannot be found, LoadBitmap returns 0.

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadBitmap().

HCURSOR owl::TModule::LoadCursor ( TResId  id) const

Wrapper for the Windows API.

Loads the cursor resource specified by id into memory and returns a handle to the cursor resource. If the cursor resource cannot be found or identifies a resource that is not a cursor, LoadCursor returns 0.

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadCursor().

HICON owl::TModule::LoadIcon ( TResId  name) const

Wrapper for the Windows API.

Loads the icon resource indicated by the parameter, name, into memory. LoadIcon loads the icon only if it has not been previously loaded. If the icon resource cannot be found, LoadIcon returns 0.

LoadIcon can be used to load a predefined Windows icon if name points to one of the Windows IDI_XXXX values.

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadIcon().

HMENU owl::TModule::LoadMenu ( TResId  id) const

Wrapper for the Windows API.

Loads the menu resource indicated by id into memory. If the menu resource cannot be found, LoadMenu returns 0.

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadMenu().

HGLOBAL owl::TModule::LoadResource ( HRSRC  hRsrc) const [inline]

Wrapper for the Windows API.

Loads a resource indicated by hRsrc into memory and returns a handle to the memory block that contains the resource. If the resource cannot be found, the return value is 0. The hRsrc parameter must be a handle created by FindResource.

LoadResource loads the resource into memory only if it has not been previously loaded. If the resource has already been loaded, LoadResource increments the reference count by one and returns a handle to the existing resource. The resource remains loaded until it is discarded.

tstring owl::TModule::LoadString ( uint  id) const

Loads a string resource identified by id.

Loads a string resource identified by id

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadString().

int owl::TModule::LoadString ( uint  id,
TCHAR *  buf,
int  bufSize 
) const

Loads a string resource identified by id into the buffer pointed to by buff. maxChars indicates the size of the buffer to which the zero-terminated string is copied. A string longer than the length specified in maxChars is truncated. The return value is the number of characters copied into the buffer, or 0 if the string resource does not exist.

MAINWIN

References owl::TModule::FindResModule(), owl::TAppDictionary::GetApplication(), owl::TApplication::GetLangId(), and owl::TModule::LoadString().

owl::TModule::operator TModule::THandle ( ) const [inline]

Returns the handle of the application or DLL module represented by this TModule. The handle must be supplied as a parameter to Windows when loading resources.

bool owl::TModule::operator== ( const TModule m) const [inline]

Returns true if this instance is equal to the other instance; otherwise, returns false.

References owl::TModule::GetHandle().

void owl::TXInvalidModule::Raise ( const tstring &  name = tstring()) [static]

Throws the exception.

Reimplemented from owl::TXBase.

References owl::TXInvalidModule::TXInvalidModule().

void owl::TXModuleVersionInfo::Raise ( const tstring &  name = tstring()) [static]

Throws the exception.

Reimplemented from owl::TXBase.

References owl::TXModuleVersionInfo::TXModuleVersionInfo().

void owl::TModule::SetHandle ( THandle  handle) [protected]

Set the module instance handle.

Set the instance handle for a module that does not yet have one. Cannot be called on a module that already has an instance handle.

void owl::TModule::SetName ( const tstring &  name)

Accessor function that sets the name of the module.

uint32 owl::TModule::SizeofResource ( HRSRC  hRsrc) const [inline]

Wrapper for the Windows API.

Returns the size, in bytes, of the resource indicated by hRscr. The resource must be a resource handle created by FindResource. If the resource cannot be found, the return value is 0.

Because of alignment in the executable file, the returned size might be larger than the actual size of the resource. An application cannot rely on SizeofResource for the exact size of a resource.

void owl::TXInvalidModule::Throw ( ) [virtual]

Throws the exception.

Reimplemented from owl::TXOwl.

void owl::TXModuleVersionInfo::Throw ( ) [virtual]

Throws the exception.

Reimplemented from owl::TXOwl.


Variable Documentation

uint8* owl::TModuleVersionInfo::Buff [protected]

new'd File version info buffer

VS_FIXEDFILEINFO* owl::TModuleVersionInfo::FixedInfo [protected]

Fixed file info structure.

uint32 owl::TModuleVersionInfo::Lang [protected]

Default language translation.