GetTimeZoneInformation declaration

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Roberto

GetTimeZoneInformation declaration

Post by Roberto » 16 Mar 2006, 18:23

 Posted by:  Roberto 

Hey all,
Can anyone give me Centura's declaration for the function
GetTimeZoneInformation please?

With the declaration I have, the function succeeds but I get an exception
when I close my application (software exception Windows dialog Box).
I am using CTD 1.5.1.

The declaration I have follows:
Library name: KERNEL32.DLL
Function: GetTimeZoneInformation
Description:
Export Ordinal: 0
Returns
Parameters
structPointer
Receive Number: LONG
Receive Number: INT
struct
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: LONG
Receive Number: INT
struct
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: INT
Receive Number: LONG

Now, here is Vb6 declaration:
Private Type TIME_ZONE_INFORMATION
Bias As Long
StandardName(0 To 63) As Byte 'Unicode
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName(0 To 63) As Byte 'Unicode
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type

thanks,
Roberto

Christian Astor

Re: GetTimeZoneInformation declaration

Post by Christian Astor » 16 Mar 2006, 20:38

 Posted by:  Christian ASTOR 


See sample GetTimeZone.zip (2000)

Roberto

Re: GetTimeZoneInformation declaration

Post by Roberto » 16 Mar 2006, 21:11

 Posted by:  Roberto 

Where is the sample, Christian?

Roberto

Re: GetTimeZoneInformation declaration

Post by Roberto » 16 Mar 2006, 21:28

 Posted by:  Roberto 

Thank you very much!

Christian Astor

Re: GetTimeZoneInformation declaration

Post by Christian Astor » 16 Mar 2006, 21:32

 Posted by:  Christian ASTOR 


I don't remember, but it was a former version of FileTime.zip =>
You do not have the required permissions to view the files attached to this post.

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests