File: dynlink-windows-CustomJavaCode.java

package info (click to toggle)
gluegen2 2.0-rc5-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,520 kB
  • sloc: java: 19,567; xml: 2,056; ansic: 1,434; sh: 588; makefile: 67
file content (11 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
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);
}