Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

TIME_ZONE_INFORMATION (Structures)
 
.
Summary

C# Definition:

    [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
    public struct TIME_ZONE_INFORMATION
    {
    [MarshalAs(UnmanagedType.I4)]            
    public Int32 Bias;
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]    
    public string StandardName;
    public SYSTEMTIME StandardDate;
    [MarshalAs(UnmanagedType.I4)]            
    public Int32 StandardBias;  
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)]    
    public string DaylightName;
    public SYSTEMTIME DaylightDate;  
    [MarshalAs(UnmanagedType.I4)]            
    public Int32 DaylightBias;
    }

VB Definition:

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
    Private Structure TIME_ZONE_INFORMATION

C# Definition:

    [StructLayoutAttribute(LayoutKind.Sequential)]
    public struct SYSTEMTIME
    {
    public short wYear;
    public short wMonth;
    public short wDayOfWeek;
    public short wDay;
    public short wHour;
    public short wMiniute;
    public short wSecond;
    public short wMilliseonds;
    }

    <MarshalAs(UnmanagedType.I4)> _
    Public Bias As Integer

VB Definition:

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
    Private Structure TIME_ZONE_INFORMATION

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _
    Public StandardName As String

    Public StandardDate As SYSTEMTIME

    <MarshalAs(UnmanagedType.I4)> _
    Public StandardBias As Integer
    Public Bias As Integer

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _
    Public DaylightName As String
    Public StandardName As String

    Public DaylightDate As SYSTEMTIME
    Public StandardDate As SYSTEMTIME

    <MarshalAs(UnmanagedType.I4)> _
    Public DaylightBias As Integer
    Public StandardBias As Integer

    End Structure

User-Defined Field Types:

SYSTEMTIME

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> _
    Public DaylightName As String

Notes:

See also: http://www.pinvoke.net/default.aspx/Structures.SYSTEMTIME

    Public DaylightDate As SYSTEMTIME

    <MarshalAs(UnmanagedType.I4)> _
    Public DaylightBias As Integer

    End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions