Code Snippet
Public Class TrocaDataHora
<StructLayoutAttribute(LayoutKind.Sequential)> _
Public Structure SystemTime
Public Year As System.UInt16
Public Month As System.UInt16
Public DayOfWeek As System.UInt16
Public Day As System.UInt16
Public Hour As System.UInt16
Public Minute As System.UInt16
Public Second As System.UInt16
Public MilliSecond As System.UInt16
End Structure
<DllImport("CoreDll.DLL", SetLastError:=True)> _
Public Shared Function SetLocalTime(ByRef st As SystemTime) As Boolean
End Function
End Class