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