summaryrefslogtreecommitdiffstats
path: root/make/dynlink-windows-CustomJavaCode.java
diff options
context:
space:
mode:
Diffstat (limited to 'make/dynlink-windows-CustomJavaCode.java')
-rwxr-xr-xmake/dynlink-windows-CustomJavaCode.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/make/dynlink-windows-CustomJavaCode.java b/make/dynlink-windows-CustomJavaCode.java
new file mode 100755
index 0000000..4101f4c
--- /dev/null
+++ b/make/dynlink-windows-CustomJavaCode.java
@@ -0,0 +1,11 @@
+public long openLibrary(String libraryName) {
+ return LoadLibraryW(libraryName);
+}
+
+public long lookupSymbol(long libraryHandle, String symbolName) {
+ return GetProcAddressA(libraryHandle, symbolName);
+}
+
+public void closeLibrary(long libraryHandle) {
+ FreeLibrary(libraryHandle);
+}