Database
javanmi.txt
Associated article: The Java Native Method Interface and Windows
Tags: Database .NET
Source code accompanying the article by Andrew Wilson in which he examines how the JDK 1.1 implements a native calling convention-- the Java Native Method Interface (JNI)--which makes it possible for the stub library to do more than just convert types between Java and C++. With JDK 1.1, you can create new instances of Java classes, call Java methods, and interact with the VM from within the native system library. See the subdirectory JAVANMI for uncompressed source code and related files, and JAVANMI.ZIP for compressed versions.
_The Java Native Method Interface and Windows_
by Andrew Wilson
Listing One
import ProcessEntry32;
import java.util.*;
class ToolHelp extends Object
{
static { System.loadLibrary("tlh"); }
// Load the native system library
final private int TH32CS_SNAPPROCESS = 2;
private Vector ...


