Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JNI for Win32 API

  Asked By: Loretta    Date: Feb 10    Category: Java    Views: 1269
  

I'm trying to use the JNI to call Win32. This is the code I am using


public class Test {
double pid = 1288;

private static native int TerminateProcess(pid);
public static void main(String args[]){
}
/** @dll.import("USER32") */
Void TerminateProcess(pid);

}


When I try to run this I get an exception.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Velma Adams     Answered On: Feb 10

post the exact exception message and your win32  .dll name . I used JNI
b4, I may be able to help u.

 
Didn't find what you were looking for? Find more on JNI for Win32 API Or get search suggestion and latest updates.




Tagged: