aboutsummaryrefslogtreecommitdiff
path: root/c/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/defs.h')
-rw-r--r--c/defs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/c/defs.h b/c/defs.h
index c557320..c83dd8c 100644
--- a/c/defs.h
+++ b/c/defs.h
@@ -1,12 +1,22 @@
#ifndef DEFS_H
#define DEFS_H
+#include <memory>
#include <windows.h>
#include <commctrl.h>
#include <SWI-Prolog.h>
/* common.cpp */
TCHAR *TszFromSz(const char *, int);
+class Library {
+private:
+ HMODULE m_hModule;
+public:
+ static std::unique_ptr<Library> Load(const TCHAR *);
+ Library(const TCHAR *);
+ ~Library();
+ FARPROC GetProcAddress(const char *);
+};
/* main.cpp */
void UpdateLayout();
@@ -61,6 +71,12 @@ int Plp(term_t, const char *, ...);
int Plg(term_t, const char *, ...);
/* defs.h */
+#ifdef UNICODE
+#define WA "W"
+#else
+#define WA "A"
+#endif
+
#define DLVSIKEY 0
#define DLVSIVALUE 1
#define ELVSIEPISODE 0