Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The GetTimeZoneInformationFromIndexmethod uses a time zone index to get the TIME_ZONE_INFORMATIONstructure (declared in Winbase.h) for the corresponding time zone.
Syntax
HRESULT GetTimeZoneInformationFromIndex( int iIndex, TIME_ZONE_INFORMATION * ptz ); |
Parameters
- iIndex
-
[in] The index of the time zone you want to retrieve.
- ptz
-
[out] Reference to a TIME_ZONE_INFORMATIONstructure to receive the indexed time zone parameters.
Return Value
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
-
The method completed successfully.
Remarks
This function can be called by C/C++ code to get information about a time zone. This structure cannot be used in Visual Basic because it is not supported by Automation. In Visual Basic, use GetTimeZoneFromIndexto get the ITimeZoneobject, which can provide all the information contained in a TIME_ZONE_INFORMATIONstructure.
Requirements
Header | pimstore.h |
Library | Pimstore.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2000 and later, Smartphone 2002 and later |