FileTimeToSystemTime (kernel32)
Last changed: omniware@gmail.com-209.63.205.126

.
Summary

C# Signature:

[DllImport("kernel32.dll",
        CallingConvention=CallingConvention.Winapi,
        SetLastError=true)]
static extern bool FileTimeToSystemTime([In] ref FILETIME lpFileTime,
   out SYSTEMTIME lpSystemTime);

VB.Net Signature

<DllImport( _
       "kernel32.dll", _
       CharSet:=CharSet.Auto, _
       SetLastError:=True)> _
   Friend Shared Function FileTimeToSystemTime( _
                        <[In]()> ByRef lpFileTime As FILETIME, _
                        <Out()> ByRef lpSystemTime As SYSTEMTIME) _
               As Boolean

User-Defined Types:

None.

Notes:

By setting the SetLastError property to true, a System.ComponentModel.Win32Exception will generated if the function fails.

Tips & Tricks:

For .NET Compact Framework:

this function is contained in "coredll.dll" not "kernel32.dll"

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation