-
Notifications
You must be signed in to change notification settings - Fork 21
/
ModuleLoader.h
39 lines (36 loc) · 1.07 KB
/
ModuleLoader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) FlatGlobus([email protected]) All rights reserved.
//
// This file is a part of the WTLBuilder.
// The use and distribution terms for this software are covered by the
// Microsoft Public License (http://opensource.org/licenses/MS-PL)
// which can be found in the file MS-PL.txt at the root folder.
#pragma once
//////////////////////////////////////////////////////////////////////////
class CModuleItem
{
public:
CModuleItem(void);
CModuleItem(const CString &);
~CModuleItem(void);
BOOL Load(void);
void Free(void);
void SetName(const CString &);
const CString & GetName(void);
BOOL IsLoaded(void);
protected:
CString DllName;
HINSTANCE Handle;
};
typedef CSimpleArray<CModuleItem> CModuleItems;
class CModuleLoader
{
public:
CModuleLoader();
virtual ~CModuleLoader();
void Load(void);
void Free(void);
void Add(const CString &,BOOL DoLoad=FALSE);
protected:
CModuleItems modules;
};
//////////////////////////////////////////////////////////////////////////