2 messages in net.java.dev.jna.usersRe: [jna-users] NativeLibrary.getGlob...
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:Re: [jna-users] NativeLibrary.getGlobalVariableAdress()?Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Jan 12, 2008 10:57:35 am
List:net.java.dev.jna.users

I think the w32 "depends" tool will do this. If you don't find it in the dll, then it might be a preprocessor constant, in which case you'll need to find the C header somewhere.

On Jan 9, 2008, at 4:26 PM, LYou@gkservices.com wrote:

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

Levi Yourchuck Senior Programmer Analyst G&K Services Phone: 952 912 5828 www.gkservices.com Enhancing Image & Safety Through Innovation