2 messages in net.java.dev.jna.usersNativeLibrary.getGlobalVariableAdress()?
FromSent OnAttachments
LYou...@gkservices.comJan 9, 2008 1:26 pm 
Timothy WallJan 12, 2008 10:57 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:NativeLibrary.getGlobalVariableAdress()?Actions...
From:LYou...@gkservices.com (LYou@gkservices.com)
Date:Jan 9, 2008 1:26:34 pm
List:net.java.dev.jna.users

Hello,

Is there a way to get a list of the global variables defined in a .dll?

I am tasked with interacting with a .dll and the documentation for the methods is stating to pass in things like STXE_MODE_STANDARD which I am suspecting is a global variable. I do not have access to the .h file or source to the .dll, but the documentation says it is type UInt.

When I attempt to do NativeLibrary.getGlobalVariableAddress("STXE_MODE_STANDARD") it throws an exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up 'STXE_MODE_STANDARD': The specified procedure could not be found.

I would like to verify what global variables exist in the .dll by obtaining a list to examine.

Does JNA provide a path for this?

Thanks