GetSystemTime

    GetSystemTime - 현재 System의 날짜및 시간구하기

    GetSystemTime함수는 현재 Windows System상의 날짜및 시간을 반환하는 함수입니다. GetLocalTime함수와 달리 지역설정에 영향을 받지 않습니다. Declare Sub GetLocalTime Lib "kernel32" Alias "GetSystemTime" (ByRef lpSystemTime As SYSTEMTIME) - VB.NET 선언 [DllImport("kernel32")] public static extern void GetSystemTime(ref SYSTEMTIME lpSystemTime); - C# 선언 SYSTEMTIME는 반환되는 날짜및 시간을 저장할 구조체를 의미합니다. 구조체는 8개의 Member로 다음과 같이 선언되어야 합니다. Public Structure..