com.sun.jna.platform.win32.WinBase.SYSTEM_INFO return incorrect informations

59 views
Skip to first unread message

ltorok

unread,
May 10, 2013, 12:38:13 AM5/10/13
to jna-...@googlegroups.com
Hello,

I try Demo from http://www.tutorialsavvy.com/search?updated-max=2012-07-01T20:32:00%2B05:30&max-results=1&reverse-paginate=true&start=1&by-date=false.
There is use com.sun.jna.platform.win32.WinBase.SYSTEMTIME and com.sun.jna.platform.win32.WinBase.SYSTEM_INFO.

SYSTEMTIME returns correct results, but SYSTEM_INFO returns example for dwNumberOfProcessors 586 (586 is dwProcessorType)

used jna.jar and platform.jar version 3.5.2

Help, please. Thanks.

Timothy Wall

unread,
May 10, 2013, 7:27:26 AM5/10/13
to jna-...@googlegroups.com
It's entirely possible that there is a mistake or unaccounted-for detail in the structure definition.

Please feel free to contribute a patch or git pull request (with an associated test to prove correctness) to remedy the situation.
> --
> You received this message because you are subscribed to the Google Groups "Java Native Access" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

ltorok

unread,
May 21, 2013, 1:03:43 AM5/21/13
to jna-...@googlegroups.com


In MSDN is for definition of SYSTEM_INFO structure:
member dwOemId - An obsolete member that is retained for compatibility. Applications should use the wProcessorArchitecture branch of the union.
If this member is not used in definition strucure in JNA, all is ok.

Problem resolved!

My OS: Windows XP 32 bit - for this OS I am try.

Daniel Doubrovkine

unread,
May 21, 2013, 7:28:22 AM5/21/13
to jna-...@googlegroups.com
So it looks like a bug in the JNA structure definition. Can you please write a test and submit a fix via a pull request? Thanks.

--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

dB. | Moscow - Geneva - Seattle - New York
dblock.org - @dblockdotorg

Reply all
Reply to author
Forward
0 new messages