[2244] | 1 | /* $Id: os2mewrap.h,v 1.1 1999-12-29 10:42:23 sandervl Exp $ */
|
---|
| 2 | /*
|
---|
| 3 | *
|
---|
| 4 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 5 | *
|
---|
| 6 | */
|
---|
| 7 | #ifndef __OS2MEWRAP_H__
|
---|
| 8 | #define __OS2MEWRAP_H__
|
---|
| 9 |
|
---|
| 10 | #include <os2me.h>
|
---|
| 11 |
|
---|
| 12 | #if (__IBMC__ > 300)
|
---|
| 13 | // VA3.6: inline is a C++ keyword, must be translated to _inline or _Inline or __inline in C code
|
---|
| 14 | #define inline _inline
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | #ifdef INCL_MCIOS2
|
---|
| 19 |
|
---|
| 20 | inline ULONG _mciSendCommand(USHORT a, USHORT b, ULONG c, PVOID d, USHORT e)
|
---|
| 21 | {
|
---|
| 22 | ULONG yyrc;
|
---|
| 23 | USHORT sel = RestoreOS2FS();
|
---|
| 24 |
|
---|
| 25 | yyrc = mciSendCommand(a, b, c, d, e);
|
---|
| 26 | SetFS(sel);
|
---|
| 27 |
|
---|
| 28 | return yyrc;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | #undef mciSendCommand
|
---|
| 32 | #define mciSendCommand _mciSendCommand
|
---|
| 33 |
|
---|
| 34 | inline ULONG _mciSendString(PSZ a, PSZ b, USHORT c, HWND d, USHORT e)
|
---|
| 35 | {
|
---|
| 36 | ULONG yyrc;
|
---|
| 37 | USHORT sel = RestoreOS2FS();
|
---|
| 38 |
|
---|
| 39 | yyrc = mciSendString(a, b, c, d, e);
|
---|
| 40 | SetFS(sel);
|
---|
| 41 |
|
---|
| 42 | return yyrc;
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | #undef mciSendString
|
---|
| 46 | #define mciSendString _mciSendString
|
---|
| 47 |
|
---|
| 48 | inline ULONG _mciGetErrorString(ULONG a, PSZ b, USHORT c)
|
---|
| 49 | {
|
---|
| 50 | ULONG yyrc;
|
---|
| 51 | USHORT sel = RestoreOS2FS();
|
---|
| 52 |
|
---|
| 53 | yyrc = mciGetErrorString(a, b, c);
|
---|
| 54 | SetFS(sel);
|
---|
| 55 |
|
---|
| 56 | return yyrc;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | #undef mciGetErrorString
|
---|
| 60 | #define mciGetErrorString _mciGetErrorString
|
---|
| 61 |
|
---|
| 62 | /*
|
---|
| 63 | ULONG APIENTRY mciMakeGroup (PUSHORT pusDeviceGroupID,
|
---|
| 64 | USHORT usDeviceCount,
|
---|
| 65 | PUSHORT pausDeviceList,
|
---|
| 66 | ULONG ulFlags,
|
---|
| 67 | ULONG ulMMTime);
|
---|
| 68 |
|
---|
| 69 |
|
---|
| 70 | ULONG APIENTRY mciDeleteGroup (USHORT usGroupID);
|
---|
| 71 |
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | BOOL APIENTRY mciSetSysValue (USHORT iSysValue,
|
---|
| 75 | PVOID pValue);
|
---|
| 76 |
|
---|
| 77 | BOOL APIENTRY mciQuerySysValue (USHORT iSysValue,
|
---|
| 78 | PVOID pValue);
|
---|
| 79 |
|
---|
| 80 | ULONG APIENTRY mciGetDeviceID (PSZ pszName);
|
---|
| 81 |
|
---|
| 82 | ULONG APIENTRY mdmDriverNotify (USHORT usDeviceID,
|
---|
| 83 | HWND hwnd,
|
---|
| 84 | USHORT usMsgType,
|
---|
| 85 | USHORT usUserParm,
|
---|
| 86 | ULONG ulMsgParm);
|
---|
| 87 |
|
---|
| 88 | */
|
---|
| 89 | #endif // INCL_MCIOS2
|
---|
| 90 |
|
---|
| 91 | #endif //__OS2MEWRAP_H__
|
---|