Changeset 3501 for trunk/src/kernel32/oslibmisc.cpp
- Timestamp:
- May 9, 2000, 8:56:59 PM (25 years ago)
- 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 $ */ 2 2 /* 3 3 * Misc OS/2 util. procedures … … 15 15 #define INCL_DOSPROCESS 16 16 #define INCL_DOSSEL 17 #define INCL_DOSNLS /* National Language Support values */ 17 18 #include <os2wrap.h> //Odin32 OS/2 api wrappers 18 19 #include <string.h> … … 242 243 //****************************************************************************** 243 244 //****************************************************************************** 245 ULONG 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.