Changeset 175 for trunk/include/winos2def.h
- Timestamp:
- Jun 24, 1999, 10:46:35 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/winos2def.h
r18 r175 1 /* $Id: winos2def.h,v 1. 4 1999-05-31 22:37:22 phallerExp $ */1 /* $Id: winos2def.h,v 1.5 1999-06-24 08:46:35 sandervl Exp $ */ 2 2 3 3 /* … … 46 46 } 47 47 48 inline BOOL _WinPostMsg(HWND a, ULONG b, MPARAM c, MPARAM d) 49 { 50 BOOL yyrc; 51 USHORT sel = GetFS(); 52 53 yyrc = WinPostMsg(a, b, c, d); 54 SetFS(sel); 55 56 return yyrc; 57 } 58 59 #undef WinPostMsg 60 #define WinPostMsg _WinPostMsg 61 62 inline ULONG _DosSleep(ULONG a) 63 { 64 ULONG yyrc; 65 USHORT sel = GetFS(); 66 67 yyrc = DosSleep(a); 68 SetFS(sel); 69 70 return yyrc; 71 } 72 73 #undef DosSleep 74 #define DosSleep _DosSleep 75 76 77 typedef struct _COUNTRYCODE /* ctryc */ 78 { 79 ULONG country; 80 ULONG codepage; 81 } COUNTRYCODE; 82 typedef COUNTRYCODE *PCOUNTRYCODE; 83 84 typedef struct _COUNTRYINFO /* ctryi */ 85 { 86 ULONG country; 87 ULONG codepage; 88 ULONG fsDateFmt; 89 CHAR szCurrency[5]; 90 CHAR szThousandsSeparator[2]; 91 CHAR szDecimal[2]; 92 CHAR szDateSeparator[2]; 93 CHAR szTimeSeparator[2]; 94 UCHAR fsCurrencyFmt; 95 UCHAR cDecimalPlace; 96 UCHAR fsTimeFmt; 97 USHORT abReserved1[2]; 98 CHAR szDataSeparator[2]; 99 USHORT abReserved2[5]; 100 } COUNTRYINFO, *PCOUNTRYINFO; 101 102 extern "C" { 103 APIRET APIENTRY_OS2 DosQueryCtryInfo(ULONG cb, 104 PCOUNTRYCODE pcc, 105 PCOUNTRYINFO pci, 106 PULONG pcbActual); 107 } 108 109 inline ULONG _DosQueryCtryInfo(ULONG a, PCOUNTRYCODE b, PCOUNTRYINFO c, PULONG d) 110 { 111 ULONG yyrc; 112 USHORT sel = GetFS(); 113 114 yyrc = DosQueryCtryInfo(a, b, c, d); 115 SetFS(sel); 116 117 return yyrc; 118 } 119 120 #undef DosQueryCtryInfo 121 #define DosQueryCtryInfo _DosQueryCtryInfo 122 123 124 48 125 #endif //__WINOS2DEF_H__
Note:
See TracChangeset
for help on using the changeset viewer.