home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / bcfamily / source / dbcsev.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-12  |  836 b   |  35 lines

  1. //
  2. //      *******************************************************************
  3. //        JdeBP C++ Library Routines          General Public Licence v1.00
  4. //            Copyright (c) 1991,1992     Jonathan de Boyne Pollard
  5. //      *******************************************************************
  6. //
  7. // Part of FamAPI.LIB
  8. //
  9.  
  10. #include "famapi.h"
  11. #include "dosdos.h"
  12.  
  13. //
  14. //    Obtain internationalisation information
  15. //
  16. USHORT _APICALL
  17. DosGetDBCSEv ( USHORT BufferSize,
  18.                DOSCOUNTRYCODE far *PtrCountry,
  19.                char far *Buffer )
  20. {
  21.     UINT Country  = PtrCountry->country ;
  22.     UINT CodePage = PtrCountry->codepage ;
  23.  
  24.     _ES = FP_SEG(Buffer) ;
  25.     _DI = FP_OFF(Buffer) ;
  26.     _DX = Country ? Country : -1 ;
  27.     _BX = CodePage ? CodePage : -1 ;
  28.     _CX = BufferSize ;
  29.     _AX = 0x6507 ;
  30.     Dos3Call() ;
  31.     if (_FLAGS & 0x0001) return _AX;
  32.  
  33.     return NO_ERROR ;
  34. }
  35.