source: trunk/include/os2mewrap.h

Last change on this file was 21597, checked in by dmik, 14 years ago

headers: VAC <= 3.0 doesn't understand _inline in C mode, so use _Inline instead.

File size: 2.1 KB
Line 
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// VAC: inline is a C++ keyword, must be translated to _Inline in C code
13#if (defined(__IBMCPP__) || defined(__IBMC__))
14#ifndef __cplusplus
15#define inline _Inline
16#endif
17#endif
18
19#ifdef INCL_MCIOS2
20
21inline ULONG _mciSendCommand(USHORT a, USHORT b, ULONG c, PVOID d, USHORT e)
22{
23 ULONG yyrc;
24 USHORT sel = RestoreOS2FS();
25
26 yyrc = mciSendCommand(a, b, c, d, e);
27 SetFS(sel);
28
29 return yyrc;
30}
31
32#undef mciSendCommand
33#define mciSendCommand _mciSendCommand
34
35inline ULONG _mciSendString(PSZ a, PSZ b, USHORT c, HWND d, USHORT e)
36{
37 ULONG yyrc;
38 USHORT sel = RestoreOS2FS();
39
40 yyrc = mciSendString(a, b, c, d, e);
41 SetFS(sel);
42
43 return yyrc;
44}
45
46#undef mciSendString
47#define mciSendString _mciSendString
48
49inline ULONG _mciGetErrorString(ULONG a, PSZ b, USHORT c)
50{
51 ULONG yyrc;
52 USHORT sel = RestoreOS2FS();
53
54 yyrc = mciGetErrorString(a, b, c);
55 SetFS(sel);
56
57 return yyrc;
58}
59
60#undef mciGetErrorString
61#define mciGetErrorString _mciGetErrorString
62
63/*
64 ULONG APIENTRY mciMakeGroup (PUSHORT pusDeviceGroupID,
65 USHORT usDeviceCount,
66 PUSHORT pausDeviceList,
67 ULONG ulFlags,
68 ULONG ulMMTime);
69
70
71 ULONG APIENTRY mciDeleteGroup (USHORT usGroupID);
72
73
74
75 BOOL APIENTRY mciSetSysValue (USHORT iSysValue,
76 PVOID pValue);
77
78 BOOL APIENTRY mciQuerySysValue (USHORT iSysValue,
79 PVOID pValue);
80
81 ULONG APIENTRY mciGetDeviceID (PSZ pszName);
82
83ULONG APIENTRY mdmDriverNotify (USHORT usDeviceID,
84 HWND hwnd,
85 USHORT usMsgType,
86 USHORT usUserParm,
87 ULONG ulMsgParm);
88
89*/
90#endif // INCL_MCIOS2
91
92#endif //__OS2MEWRAP_H__
Note: See TracBrowser for help on using the repository browser.