WinCpTranslateString


Example of WinCpTranslateString usage (source: MISCWIN.C)
...
#define SRC_LENGTH     30
...
    static USHORT *pPcCodePage, idCtry;
    static CHAR   szCurrentHost[5];

    static UCHAR  szBufIn[SRC_LENGTH+1], szBufOut[SRC_LENGTH*2+1];
...
              WinCpTranslateString(WinQueryAnchorBlock(hwnd),
                               (ULONG)*pPcCodePage,     /* source code page*/
                               szBufIn,                /* address of source*/
                               (ULONG)atol(szCurrentHost),/* target code page*/
                               (ULONG)sizeof(szBufOut), /* length of target*/
                               szBufOut);                  /* address of target */
...


[Back: TrnsDt]
[Next: Using EHLLAPI]