dlllib.h

来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 53 行

H
53
字号
/**
 * @file DllLib.h
 * @brief Windows shared library loader
 * @author Christopher Han <xiphux@gmail.com>
 * 
 * Windows Shared Object loader class definition
 * Copyright (C) 2005.  Licensed under the terms of the
 * GNU GPL, v2 or later
 */
#ifndef DLLLIB_H
#define DLLLIB_H

#include "Platform/SharedLib.h"
#include <windows.h>

/**
 * @brief Win32 DLL base
 *
 * This class loads Win32 DLLs.
 * Derived from the abstract SharedLib.
 */
class DllLib: public SharedLib
{
public:
	/**
	 * @brief Constructor
	 * @param filename DLL to load
	 */
	DllLib(const char *filename);
	
	/**
	 * @brief Destructor
	 */
	~DllLib();

	/**
	 * @brief Find address
	 * @param symbol function to locate
	 * @return void pointer to the function if found, NULL otherwise
	 */
	void *FindAddress(const char *symbol);
private:

	/**
	 * @brief dll pointer
	 *
	 * HINSTANCE used to point to the currently opened DLL.
	 */
	HINSTANCE dll;
};

#endif /* DLLLIB_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?