public static extern int GetTimeFormat( uint Locale, TIME_FORMAT dwFlags, [In] IntPtr lpTime, [In] [MarshalAs(UnmanagedType.LPTStr)] string lpFormat, [Out] [MarshalAs(UnmanagedType.LPTStr)] StringBuilder lpTimeStr, int cchTime);
public static extern int GetTimeFormatEx(string lpLocaleName, TIME_FORMAT dwFlags, [In] ref SYSTEMTIME lpTime, [In] string lpFormat, [Out] StringBuilder lpTimeStr, int cchTime);