GetTimeZoneInformation

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hey everybody,

I figured out what I was doing wrong with GetTimeZoneInformation (WCHAR 
stands for WIDE character, who'da thunk?.  So you have to multiply the 
length by 2 to get the ACTUAL number of bytes).

I sent to Rob a zip file with my win32ext.ew, which is a trivial 
collection of Windows routines not found in win32lib.ew which contains 
the GetTimeZoneInformation routine.  Also included is a test program 
that outputs your time zone, local time and GMT time to a text file.

win32ext.ew also has routines to:

- Get the current user name
- Get the last error code and error text (you can call this, for 
example, when shellExecuteEx fails to display a message to the user)
- A wrapper for the SHFileOperation routine where you can move, copy, 
rename or delete files.

To run the timeztest.exw you'll need:
- win32lib (of course)
- win32ext
- version of misc.e that contains the pretty_print() routine
- datetime.e by Carl White (if you don't already have this one you 
should!  I don't think I have a program that DOESN'T use this include)

Have fun!

Jonas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu