CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    Colombia
    Posts
    15

    API Regional Settings

    I need to know if there is an API call to find out the DATE Setting in the Regional settings "dd/mm/yy".
    Is there a way to change it through an API call.

    Thanks
    Santiago Torres

  2. #2
    Join Date
    Nov 2002
    Posts
    86
    check out the GetLocaleInfo API. I have played with it a few times to get what you're after. I'm pretty sure theres a few sites around with it on (can't get to my code at the mo)
    Theres probably a SetLocaleInfo as well... though i haven't used that at all.
    Code:
    Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal _
    Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal _
    cchData As Long) As Long
    Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (ByVal _
    Locale As Long, ByVal LCType As Long, ByVal lpLCData As String) As Boolean 
    Declare Function GetUserDefaultLCID% Lib "kernel32" ()
    there ya are, look into those three.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured