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