Class Hierarchy   Class Index   Method Index  

CHMdll.h

00001 #ifndef __CHM_DLL_H__
00002 #define __CHM_DLL_H__
00003 //---------------------------------------------------------------------------
00004 // Copyright (C) 1997-2008 iNTERFACEWARE Inc. All Rights Reserved
00005 //
00006 // Module: CHMdll
00007 //
00008 // Description:
00009 //
00010 // Class which wraps basic shared library and dll functionality in an
00011 // operating system independent manner.
00012 //
00013 // Author: Steven Dodd
00014 // Date:   Jan 19, 2009
00015 // Revision: $Revision: 1.1 $
00016 //
00017 // Last Edit Date: $Date: 2009-01-21 15:08:14 $
00018 // Source: $Source: /home/cvs/cvsroot/CHM/CHMdll.h,v $
00019 //---------------------------------------------------------------------------
00020 
00021 #include <CHM/CHMminCInclude.h>
00022 
00023 CHM_DLL_FUNC(CHMdllCreate)
00024 (
00025    CHMdllHandle* HandleOut
00026 );
00027 
00028 CHM_DLL_FUNC(CHMdllAddRef)
00029 (
00030    CHMdllHandle Handle
00031 );
00032 
00033 CHM_DLL_FUNC(CHMdllRelease)
00034 (
00035    CHMdllHandle Handle
00036 );
00037 
00038 CHM_DLL_FUNC(CHMdllLoadLibrary)
00039 (
00040    CHMdllHandle Handle,
00041    const CHMchar * LibraryPath,
00042    CHMboolean TakeOwnership
00043 );
00044 
00045 CHM_DLL_FUNC(CHMdllFreeLibrary)
00046 (
00047    CHMdllHandle Handle
00048 );
00049 
00050 CHM_DLL_FUNC(CHMdllGetProcAddress)
00051 (
00052    CHMdllHandle Handle,
00053    const CHMchar * ProcName,
00054    void** ProcAddressOut
00055 );
00056 
00057 CHM_DLL_FUNC(CHMdllGetLibraryName)
00058 (
00059    CHMdllHandle Handle,
00060    const CHMchar ** LibraryNameOut
00061 );
00062 
00063 #endif // end of defensive include