Ignore:
Timestamp:
Jan 19, 2003, 8:42:16 PM (23 years ago)
Author:
umoeller
Message:

First attempt at new container contol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/nls.h

    r194 r242  
    9090        } COUNTRYSETTINGS, *PCOUNTRYSETTINGS;
    9191
    92         VOID XWPENTRY nlsQueryCountrySettings(PCOUNTRYSETTINGS pcs);
     92        /*
     93         *@@ COUNTRYAMPM:
     94         *
     95         *@@added V1.0.1 (2003-01-17) [umoeller]
     96         */
     97
     98        typedef struct _COUNTRYAMPM
     99        {
     100            CHAR            sz2359[10],
     101                            sz1159[10];
     102        } COUNTRYAMPM, *PCOUNTRYAMPM;
     103
     104        /*
     105         *@@ COUNTRYSETTINGS:
     106         *      second structure to finally get the AM/PM
     107         *      stuff right too. I suspect people have used
     108         *      this structure in XCenter DLLs and such so
     109         *      I cannot easily change it... hence a second
     110         *      one.
     111         *
     112         *@@changed V1.0.1 (2003-01-17) [umoeller]
     113         */
     114
     115        typedef struct _COUNTRYSETTINGS2
     116        {
     117            COUNTRYSETTINGS cs;
     118            COUNTRYAMPM     ampm;
     119        } COUNTRYSETTINGS2, *PCOUNTRYSETTINGS2;
     120
     121        VOID XWPENTRY nlsQueryCountrySettings(PCOUNTRYSETTINGS2 pcs);
    93122
    94123        PSZ XWPENTRY nlsThousandsULong(PSZ pszTarget, ULONG ul, CHAR cThousands);
     
    103132                                       CHAR cThousands);
    104133
     134        VOID XWPENTRY nlsDate(const COUNTRYSETTINGS2 *pcs2,
     135                              PSZ pszDate,
     136                              USHORT year,
     137                              BYTE month,
     138                              BYTE day);
     139
     140        VOID XWPENTRY nlsTime(const COUNTRYSETTINGS2 *pcs,
     141                              PSZ pszTime,
     142                              BYTE hours,
     143                              BYTE minutes,
     144                              BYTE seconds);
     145
    105146        VOID XWPENTRY nlsFileDate(PSZ pszBuf,
    106                                   FDATE *pfDate,
    107                                   ULONG ulDateFormat,
    108                                   CHAR cDateSep);
     147                                  const FDATE *pfDate,
     148                                  const COUNTRYSETTINGS2 *pcs);
    109149
    110150        VOID XWPENTRY nlsFileTime(PSZ pszBuf,
    111                                   FTIME *pfTime,
    112                                   ULONG ulTimeFormat,
    113                                   CHAR cTimeSep);
     151                                  const FTIME *pfTime,
     152                                  const COUNTRYSETTINGS2 *pcs);
    114153
    115154        VOID XWPENTRY nlsDateTime(PSZ pszDate,
    116155                                  PSZ pszTime,
    117                                   DATETIME *pDateTime,
     156                                  const DATETIME *pDateTime,
    118157                                  ULONG ulDateFormat,
    119158                                  CHAR cDateSep,
     
    122161        typedef VOID XWPENTRY NLSDATETIME(PSZ pszDate,
    123162                                          PSZ pszTime,
    124                                           DATETIME *pDateTime,
     163                                          const DATETIME *pDateTime,
    125164                                          ULONG ulDateFormat,
    126165                                          CHAR cDateSep,
     
    129168        typedef NLSDATETIME *PNLSDATETIME;
    130169
    131         ULONG nlsUpper(PSZ psz);
     170        VOID XWPENTRY nlsDateTime2(PSZ pszDate,
     171                                   PSZ pszTime,
     172                                   const DATETIME *pDateTime,
     173                                   const COUNTRYSETTINGS2 *pcs2);
     174        typedef VOID XWPENTRY NLSDATETIME2(PSZ pszDate,
     175                                           PSZ pszTime,
     176                                           const DATETIME *pDateTime,
     177                                           const COUNTRYSETTINGS2 *pcs2);
     178        typedef NLSDATETIME2 *PNLSDATETIME2;
    132179
    133180    #endif
     181
     182    ULONG nlsUpper(PSZ psz);
    134183
    135184#endif
Note: See TracChangeset for help on using the changeset viewer.