19 lines
590 B
C
19 lines
590 B
C
#ifndef __DYNAMICLIB_WINDOWS_H_
|
|
#define __DYNAMICLIB_WINDOWS_H_
|
|
|
|
#include <Windows.h>
|
|
|
|
#ifdef ICSNEOC_MAKEDLL
|
|
#define DLLExport __declspec(dllexport)
|
|
#else
|
|
#define DLLExport __declspec(dllimport)
|
|
#endif
|
|
|
|
// MSVC does not have the ability to specify a destructor
|
|
#define ICSNEO_DESTRUCTOR
|
|
|
|
#define icsneoDynamicLibraryLoad() LoadLibrary(L"C:\\Users\\Phollinsky\\Code\\icsneonext\\build\\icsneoc.dll")
|
|
#define icsneoDynamicLibraryGetFunction(handle, func) GetProcAddress((HMODULE) handle, func)
|
|
#define icsneoDynamicLibraryClose(handle) FreeLibrary((HMODULE) handle)
|
|
|
|
#endif |