1 // Licensed under the Apache License, Version 2.0 2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. 4 // All files in the project carrying such notice may not be copied, modified, or distributed 5 // except according to those terms. 6 use ctypes::c_int; 7 use shared::minwindef::DWORD; 8 use um::minwinbase::SYSTEMTIME; 9 use um::winnt::{LCID, LPCSTR, LPCWSTR, LPSTR, LPWSTR}; 10 extern "system" { GetDateFormatA( Locale: LCID, dwFlags: DWORD, lpDate: *const SYSTEMTIME, lpFormat: LPCSTR, lpDateStr: LPSTR, cchDate: c_int, ) -> c_int11 pub fn GetDateFormatA( 12 Locale: LCID, 13 dwFlags: DWORD, 14 lpDate: *const SYSTEMTIME, 15 lpFormat: LPCSTR, 16 lpDateStr: LPSTR, 17 cchDate: c_int, 18 ) -> c_int; GetDateFormatW( Locale: LCID, dwFlags: DWORD, lpDate: *const SYSTEMTIME, lpFormat: LPCWSTR, lpDateStr: LPWSTR, cchDate: c_int, ) -> c_int19 pub fn GetDateFormatW( 20 Locale: LCID, 21 dwFlags: DWORD, 22 lpDate: *const SYSTEMTIME, 23 lpFormat: LPCWSTR, 24 lpDateStr: LPWSTR, 25 cchDate: c_int, 26 ) -> c_int; GetTimeFormatA( Locale: LCID, dwFlags: DWORD, lpTime: *const SYSTEMTIME, lpFormat: LPCSTR, lpTimeStr: LPSTR, cchTime: c_int, ) -> c_int27 pub fn GetTimeFormatA( 28 Locale: LCID, 29 dwFlags: DWORD, 30 lpTime: *const SYSTEMTIME, 31 lpFormat: LPCSTR, 32 lpTimeStr: LPSTR, 33 cchTime: c_int, 34 ) -> c_int; GetTimeFormatW( Locale: LCID, dwFlags: DWORD, lpTime: *const SYSTEMTIME, lpFormat: LPCWSTR, lpTimeStr: LPWSTR, cchTime: c_int, ) -> c_int35 pub fn GetTimeFormatW( 36 Locale: LCID, 37 dwFlags: DWORD, 38 lpTime: *const SYSTEMTIME, 39 lpFormat: LPCWSTR, 40 lpTimeStr: LPWSTR, 41 cchTime: c_int, 42 ) -> c_int; GetTimeFormatEx( lpLocaleName: LPCWSTR, dwFlags: DWORD, lpTime: *const SYSTEMTIME, lpFormat: LPCWSTR, lpTimeStr: LPWSTR, cchTime: c_int, ) -> c_int43 pub fn GetTimeFormatEx( 44 lpLocaleName: LPCWSTR, 45 dwFlags: DWORD, 46 lpTime: *const SYSTEMTIME, 47 lpFormat: LPCWSTR, 48 lpTimeStr: LPWSTR, 49 cchTime: c_int, 50 ) -> c_int; GetDateFormatEx( lpLocaleName: LPCWSTR, dwFlags: DWORD, lpDate: *const SYSTEMTIME, lpFormat: LPCWSTR, lpDateStr: LPWSTR, cchDate: c_int, lpCalendar: LPCWSTR, ) -> c_int51 pub fn GetDateFormatEx( 52 lpLocaleName: LPCWSTR, 53 dwFlags: DWORD, 54 lpDate: *const SYSTEMTIME, 55 lpFormat: LPCWSTR, 56 lpDateStr: LPWSTR, 57 cchDate: c_int, 58 lpCalendar: LPCWSTR, 59 ) -> c_int; 60 } 61