Have you looked at the GetTimezoneInfo demo at
http://www.mvps.org/vbvision/ ?
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
>Hello group
>I ve browsed a lot of Google resources ans MSDN reference for GetTimeZoneInformation
[quoted text clipped - 80 lines]
>
>End Sub
Xylos - 29 Oct 2003 21:25 GMT
Well thank you, it solved my problem !!
in fact the type declaration from Api Viewer 2002 TIME_ZONE_INFORMATION is creating the problem
<-BAD->
Private Type TIME_ZONE_INFORMATION
Bias As Long
StandardName(32) As Integer
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName(32) As Integer
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
<-GOOD ->
Private Type TIME_ZONE_INFORMATION
Bias As Long
StandardName(63) As Byte ' <-- zero based array so there are actually 64 bytes in the array
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName(63) As Byte ' <-- zero based array so there are actually 64 bytes in the array
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
> Have you looked at the GetTimezoneInfo demo at
> http://www.mvps.org/vbvision/ ?
[quoted text clipped - 91 lines]
> >
> >End Sub
Mike D Sutton - 30 Oct 2003 00:27 GMT
> Well thank you, it solved my problem !!
>
> in fact the type declaration from Api Viewer 2002
> TIME_ZONE_INFORMATION is creating the problem
You could also most likely use this version:
'***
Private Type TIME_ZONE_INFORMATION
Bias As Long
StandardName(31) As Integer
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName(31) As Integer
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
'***
However the byte versions is easier to use with VB since you can simply typecast the byte array to a string.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: Http://www.mvps.org/EDais/