|
1 | | -/* |
2 | | - * Memory DLL loading code |
3 | | - * Version 0.0.2 |
4 | | - * |
5 | | - * Copyright (c) 2004-2005 by Joachim Bauch / mail@joachim-bauch.de |
6 | | - * http://www.joachim-bauch.de |
7 | | - * |
8 | | - * The contents of this file are subject to the Mozilla Public License Version |
9 | | - * 1.1 (the "License"); you may not use this file except in compliance with |
10 | | - * the License. You may obtain a copy of the License at |
11 | | - * http://www.mozilla.org/MPL/ |
12 | | - * |
13 | | - * Software distributed under the License is distributed on an "AS IS" basis, |
14 | | - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
15 | | - * for the specific language governing rights and limitations under the |
16 | | - * License. |
17 | | - * |
18 | | - * The Original Code is MemoryModule.h |
19 | | - * |
20 | | - * The Initial Developer of the Original Code is Joachim Bauch. |
21 | | - * |
22 | | - * Portions created by Joachim Bauch are Copyright (C) 2004-2005 |
23 | | - * Joachim Bauch. All Rights Reserved. |
24 | | - * |
25 | | - */ |
26 | | - |
27 | | -#ifndef __MEMORY_MODULE_HEADER |
28 | | -#define __MEMORY_MODULE_HEADER |
29 | | - |
30 | | -#include <Windows.h> |
31 | | - |
32 | | -typedef void *HMEMORYMODULE; |
33 | | - |
34 | | -#ifdef __cplusplus |
35 | | -extern "C" { |
36 | | -#endif |
37 | | - |
38 | | -HMEMORYMODULE MemoryLoadLibrary(const void *); |
39 | | - |
40 | | -FARPROC MemoryGetProcAddress(HMEMORYMODULE, const char *); |
41 | | - |
42 | | -void MemoryFreeLibrary(HMEMORYMODULE); |
43 | | - |
44 | | -#ifdef __cplusplus |
45 | | -} |
46 | | -#endif |
47 | | - |
48 | | -#endif // __MEMORY_MODULE_HEADER |
| 1 | +/* |
| 2 | + * Memory DLL loading code |
| 3 | + * Version 0.0.2 |
| 4 | + * |
| 5 | + * Copyright (c) 2004-2005 by Joachim Bauch / mail@joachim-bauch.de |
| 6 | + * http://www.joachim-bauch.de |
| 7 | + * |
| 8 | + * The contents of this file are subject to the Mozilla Public License Version |
| 9 | + * 1.1 (the "License"); you may not use this file except in compliance with |
| 10 | + * the License. You may obtain a copy of the License at |
| 11 | + * http://www.mozilla.org/MPL/ |
| 12 | + * |
| 13 | + * Software distributed under the License is distributed on an "AS IS" basis, |
| 14 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 15 | + * for the specific language governing rights and limitations under the |
| 16 | + * License. |
| 17 | + * |
| 18 | + * The Original Code is MemoryModule.h |
| 19 | + * |
| 20 | + * The Initial Developer of the Original Code is Joachim Bauch. |
| 21 | + * |
| 22 | + * Portions created by Joachim Bauch are Copyright (C) 2004-2005 |
| 23 | + * Joachim Bauch. All Rights Reserved. |
| 24 | + * |
| 25 | + */ |
| 26 | + |
| 27 | +#ifndef __MEMORY_MODULE_HEADER |
| 28 | +#define __MEMORY_MODULE_HEADER |
| 29 | + |
| 30 | +#include <Windows.h> |
| 31 | + |
| 32 | +typedef void *HMEMORYMODULE; |
| 33 | + |
| 34 | +#ifdef __cplusplus |
| 35 | +extern "C" { |
| 36 | +#endif |
| 37 | + |
| 38 | +HMEMORYMODULE MemoryLoadLibrary(const void *); |
| 39 | + |
| 40 | +FARPROC MemoryGetProcAddress(HMEMORYMODULE, const char *); |
| 41 | + |
| 42 | +void MemoryFreeLibrary(HMEMORYMODULE); |
| 43 | + |
| 44 | +#ifdef __cplusplus |
| 45 | +} |
| 46 | +#endif |
| 47 | + |
| 48 | +#endif // __MEMORY_MODULE_HEADER |
0 commit comments