I am using the following entry out of the win32api
Declare Function GetTimeZoneInformation Lib "kernel32" Alias "GetTimeZoneInformation" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long
I have the following type set up
zone As Long
Then in my sub I am doing this
Dim TimeZone As TIME_ZONE_INFORMATION
GetTimeZoneInformation TimeZone it is this line that is causing the problem
Every time I try to run this it kills VB. What am I doing wrong. I have called into the API this way before.