diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 12:12:11 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 12:12:11 +0300 |
commit | 263892c3b18be3cfa0e749fe2e8b9703e6e30c16 (patch) | |
tree | c17eec4fb9fd7a8b6d01c8a97c924a9b11f1cf6e | |
parent | 5900716291f8bb00a062c1c9f169c4ba8671c759 (diff) |
modified: api/api.h
modified: core/main.cpp
modified: modules/example/main.cpp
-rw-r--r-- | api/api.h | 12 | ||||
-rw-r--r-- | core/main.cpp | 2 | ||||
-rw-r--r-- | modules/example/main.cpp | 1 |
3 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#ifndef API_H +#define API_H +#ifdef __cplusplus +extern "C" { +#endif +__declspec(dllexport) void GetPluginInfo(PluginInfo* pPluginInfo, DWORD *pdwResult); +__declspec(dllexport) void PluginHandler(DWORD dwCode, HostInfo *pHostInfo, DWORD *pdwResult); +#ifdef __cplusplus +} +#endif +#endif //API_H + diff --git a/core/main.cpp b/core/main.cpp index f93b81b..61e7579 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -1,4 +1,5 @@ #include <windows.h> +#include "../api/api.h" int main() { @@ -6,3 +7,4 @@ int main() return 0; } + diff --git a/modules/example/main.cpp b/modules/example/main.cpp index 9b2af1b..3ba6fb5 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -1,4 +1,5 @@ #include <windows.h> +#include "../api/api.h" HINSTANCE hDllInstance=NULL; BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, |