Check GetLocaleInfo and GetLocaleInfoEx functions in MSDN. Or you can use
directly GetDateFormat to get the date in the format if that is what you need.
Most of the examples I found are in VB6 like this one
http://www.codenewsgroups.net/group/microsoft.public.vb.general.discussion/topic2255.aspx,
it is quite similar to the mapping you need to do in JNA, so it might be helpful
for you, specially if you already know VB6, and MSDN documentation is not enough
(just keep in mind that Long in VB6 is a 32 bit integer, and Integer in VB is 16
bits). Otherwise you might be able to find some .NET example.
Thanks,
Daniel
----- Original Message -----
From: Robert Martin
To: use...@jna.dev.java.net
Sent: Monday, January 28, 2008 6:15 PM
Subject: [jna-users] Need to get the shortdate string form the regional
setting in windows.
Does anyone have any idea how to pull this off using JNA?
Robert Martin | ClickCommerce - Service Network Solutions - R&D | Software
Engineer
direct: 585.419.3199 | mobile: 585.703.8889 | fax: 585.248.9199
robe...@clickcommerce.com