|
-
Jun 4th, 2001, 10:41 PM
#1
Thread Starter
Member
TimeZone
Hi
I want to get the timezone info.
plz, convert this c statements to corresponding VB statements.
DWORD GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation
// address of
// time-zone settings
);
typedef struct _TIME_ZONE_INFORMATION { // tzi
LONG Bias;
WCHAR StandardName[ 32 ];
SYSTEMTIME StandardDate;
LONG StandardBias;
WCHAR DaylightName[ 32 ];
SYSTEMTIME DaylightDate;
LONG DaylightBias;
} TIME_ZONE_INFORMATION;
-
Jun 5th, 2001, 07:40 AM
#2
Member
Look in API viewer for more functions and declares
Here is what you asked for, I am sure you will need more info. Just look in the API viewer that comes with VB.
Public 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
Public Declare Function GetTimeZoneInformation Lib "kernel32" Alias "GetTimeZoneInformation" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long
-
Jun 5th, 2001, 10:55 PM
#3
Thread Starter
Member
Thanx
thanx shtirliz,
I forgot to check apiviewer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|