Ignore:
Timestamp:
May 9, 2000, 8:56:59 PM (25 years ago)
Author:
sandervl
Message:

lots of changes/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibmisc.cpp

    r2866 r3501  
    1 /* $Id: oslibmisc.cpp,v 1.8 2000-02-23 01:06:59 sandervl Exp $ */
     1/* $Id: oslibmisc.cpp,v 1.9 2000-05-09 18:56:09 sandervl Exp $ */
    22/*
    33 * Misc OS/2 util. procedures
     
    1515#define INCL_DOSPROCESS
    1616#define INCL_DOSSEL
     17#define INCL_DOSNLS        /* National Language Support values */
    1718#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    1819#include <string.h>
     
    242243//******************************************************************************
    243244//******************************************************************************
     245ULONG OSLibQueryCountry()
     246{
     247 COUNTRYCODE  Country    = {0};   /* Country code info (0 = current country) */
     248 COUNTRYINFO  CtryInfo   = {0};   /* Buffer for country-specific information */
     249 ULONG        ulInfoLen  = 0;
     250 APIRET       rc         = NO_ERROR;  /* Return code                         */
     251 
     252    rc = DosQueryCtryInfo(sizeof(CtryInfo), &Country,
     253                          &CtryInfo, &ulInfoLen);
     254 
     255    if (rc != NO_ERROR) {
     256        return -1;
     257    }
     258    return CtryInfo.country;
     259}
     260//******************************************************************************
     261//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.