|
JunkBox_Win_Lib 1.5.3
|
#include <WinDLLTool.h>
Public Member Functions | |
| DLLModule (LPCTSTR fname, int n) | |
| DLLModule () | |
| virtual | ~DLLModule () |
| void | init (LPCTSTR fname, int n) |
| void | free () |
| char * | get_info (int n=0) |
| BOOL | set_funcname (LPCTSTR fname, int n) |
| BOOL | get_module_info (tList *lp) |
| void * | get_funcptr (int n) |
Public Attributes | |
| int | status |
| int | fnum |
| char * | title |
| CString | dllname |
| CString | filename |
| CString | funcname |
| HMODULE | hmod |
Protected Attributes | |
| FUNC_STRING | pgetinfo |
| void ** | pfunc |
Friends | |
| class | DLLModuleTBL |
Definition at line 53 of file WinDLLTool.h.
|
inline |
Definition at line 71 of file WinDLLTool.h.
References DLLModule::init().

|
inline |
Definition at line 72 of file WinDLLTool.h.
References DLLModule::init().

|
inlinevirtual |
Definition at line 73 of file WinDLLTool.h.
References DLLModule::free().

| void free | ( | ) |
機能:クラス中のデータを解放する.
Definition at line 53 of file WinDLLTool.cpp.
References DLLModule::fnum, DLLModule::free(), DLLModule::hmod, DLLModule::pfunc, DLLModule::pgetinfo, and DLLModule::status.
Referenced by DLLModule::free(), DLLModuleTBL::free(), DLLModule::get_module_info(), DLLModule::set_funcname(), and DLLModule::~DLLModule().


| void * get_funcptr | ( | int | n | ) |
機能:DLL中の n番目の関数へのポインタを得る.関数の型は外部で決める
引数:求める関数の番号.0 〜 fnum-1
戻り値:関数へのポインタ.
Definition at line 148 of file WinDLLTool.cpp.
References DLLModule::fnum, DLLModule::pfunc, and DLLModule::status.
|
inline |
Definition at line 77 of file WinDLLTool.h.
References DLLModule::pgetinfo.
| BOOL get_module_info | ( | tList * | lp | ) |
機能:モジュールの一覧を格納したリストlp から,モジュール(一つだけ)の情報を獲得する. 関数名fname で示した関数 fname(0) からタイトル名を取得する. fname(1) 〜 fname(fnum-1) からは使用できる関数名を得る.使用できる関数の型は, 外部で決める.
引数:lp – モジュールの情報が入ったリストへのポインタ. lp->ldat.key : DLL名 lp->ldat.val : DLLファイル名(ディレクトリを含む) lp->ldat.ptr : モジュールハンドラ
戻り値:TRUE – 正常に情報を取得. FALSE – 情報取得関数から,正しい情報を読み取れない.
Definition at line 108 of file WinDLLTool.cpp.
References DLLModule::dllname, DLLModule::filename, DLLModule::fnum, DLLModule::free(), DLLModule::funcname, DLLModule::hmod, jbxwl::mbs2ts(), DLLModule::pfunc, DLLModule::pgetinfo, DLLModule::status, DLLModule::title, and jbxwl::ts2mbs().
Referenced by DLLModuleTBL::make_module_tbl().


| void init | ( | LPCTSTR | fname, |
| int | n ) |
機能:クラスの初期化.fnameに NULL または nに 0以下を指定した場合は set_funcname() で改めて指定しなければならない.
引数:fname – 読み込むDLL中の情報取得関数の名前 n – 読み込むDLL中の使用できる関数の数
Definition at line 30 of file WinDLLTool.cpp.
References DLLModule::dllname, DLLModule::filename, DLLModule::fnum, DLLModule::funcname, DLLModule::hmod, DLLModule::pfunc, DLLModule::pgetinfo, DLLModule::status, and DLLModule::title.
Referenced by DLLModule::DLLModule(), and DLLModule::DLLModule().

| BOOL set_funcname | ( | LPCTSTR | fname, |
| int | n ) |
機能:DLL中の情報取得関数の名前と,使用できる関数の数を指定する. fnameに NULL または nに 0以下を指定した場合,改めて指定しなければならない.
引数:fname – 読み込むDLL中の情報取得関数の名前 n – 読み込むDLL中の使用できる関数の数
戻り値:TRUE – 指定は完了した. FALSE – 指定は完了していない.続行は保障されない.
Definition at line 76 of file WinDLLTool.cpp.
References DLLModule::fnum, DLLModule::free(), DLLModule::funcname, and DLLModule::pfunc.

|
friend |
Definition at line 83 of file WinDLLTool.h.
| CString dllname |
Definition at line 60 of file WinDLLTool.h.
Referenced by DLLModule::get_module_info(), and DLLModule::init().
| CString filename |
Definition at line 61 of file WinDLLTool.h.
Referenced by DLLModule::get_module_info(), and DLLModule::init().
| int fnum |
Definition at line 57 of file WinDLLTool.h.
Referenced by DLLModule::free(), DLLModule::get_funcptr(), DLLModule::get_module_info(), DLLModule::init(), and DLLModule::set_funcname().
| CString funcname |
Definition at line 62 of file WinDLLTool.h.
Referenced by DLLModule::get_module_info(), DLLModule::init(), and DLLModule::set_funcname().
| HMODULE hmod |
Definition at line 64 of file WinDLLTool.h.
Referenced by DLLModule::free(), DLLModule::get_module_info(), and DLLModule::init().
|
protected |
Definition at line 68 of file WinDLLTool.h.
Referenced by DLLModule::free(), DLLModule::get_funcptr(), DLLModule::get_module_info(), DLLModule::init(), and DLLModule::set_funcname().
|
protected |
Definition at line 67 of file WinDLLTool.h.
Referenced by DLLModule::free(), DLLModule::get_info(), DLLModule::get_module_info(), and DLLModule::init().
| int status |
Definition at line 56 of file WinDLLTool.h.
Referenced by DLLModule::free(), DLLModule::get_funcptr(), DLLModule::get_module_info(), and DLLModule::init().
| char* title |
Definition at line 59 of file WinDLLTool.h.
Referenced by DLLModule::get_module_info(), and DLLModule::init().