1 | /* $Id: mci.cpp,v 1.1 1999-05-24 20:20:06 ktk Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * MCI stubs
|
---|
5 | *
|
---|
6 | * Copyright 1998 Joel Troster
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
10 | *
|
---|
11 | */
|
---|
12 | #include <os2win.h>
|
---|
13 | #include <mmsystem.h>
|
---|
14 |
|
---|
15 | #include <string.h>
|
---|
16 | #include <stdio.h>
|
---|
17 |
|
---|
18 | #include <misc.h>
|
---|
19 | #include <unicode.h>
|
---|
20 |
|
---|
21 | #include "winmm.h"
|
---|
22 |
|
---|
23 | BOOL WIN32API mciDriverNotify(HWND hwndCallback, UINT uDeviceID, UINT uStatus)
|
---|
24 | {
|
---|
25 | dprintf(("WINMM:mciDriverNotify - stub\n"));
|
---|
26 | return FALSE;
|
---|
27 | }
|
---|
28 |
|
---|
29 | UINT WIN32API mciDriverYield(UINT uDeviceID)
|
---|
30 | {
|
---|
31 | dprintf(("WINMM:mciDriverYield - stub\n"));
|
---|
32 | return 0;
|
---|
33 | }
|
---|
34 |
|
---|
35 | BOOL WIN32API mciExecute(LPCSTR pszCommand)
|
---|
36 | {
|
---|
37 | dprintf(("WINMM:mciExecute(%s) - stub\n", pszCommand));
|
---|
38 | return FALSE;
|
---|
39 | }
|
---|
40 |
|
---|
41 | BOOL WIN32API mciFreeCommandResource(UINT uTable)
|
---|
42 | {
|
---|
43 | dprintf(("WINMM:mciFreeCommandResource - stub\n"));
|
---|
44 | return FALSE;
|
---|
45 | }
|
---|
46 |
|
---|
47 | HTASK WIN32API mciGetCreatorTask(MCIDEVICEID mciId)
|
---|
48 | {
|
---|
49 | dprintf(("WINMM:mciGetCreatorTask - stub\n"));
|
---|
50 | return 0;
|
---|
51 | }
|
---|
52 |
|
---|
53 | MCIDEVICEID WIN32API mciGetDeviceIDA(LPCSTR pszDevice)
|
---|
54 | {
|
---|
55 | dprintf(("WINMM:mciGetDeviceIDA - stub\n"));
|
---|
56 | return 0;
|
---|
57 | }
|
---|
58 |
|
---|
59 | MCIDEVICEID WIN32API mciGetDeviceIDW(LPCWSTR pszDevice)
|
---|
60 | {
|
---|
61 | dprintf(("WINMM:mciGetDeviceIDW - stub\n"));
|
---|
62 | return 0;
|
---|
63 | }
|
---|
64 |
|
---|
65 | MCIDEVICEID WIN32API mciGetDeviceIDFromElementIDA(DWORD dwElementID, LPCSTR lpstrType )
|
---|
66 | {
|
---|
67 | dprintf(("WINMM:mciGetDeviceIDFromElementIDA - stub\n"));
|
---|
68 | return 0;
|
---|
69 | }
|
---|
70 |
|
---|
71 | MCIDEVICEID WIN32API mciGetDeviceIDFromElementIDW(DWORD dwElementID, LPCWSTR lpstrType )
|
---|
72 | {
|
---|
73 | dprintf(("WINMM:mciGetDeviceIDFromElementIDW - stub\n"));
|
---|
74 | return 0;
|
---|
75 | }
|
---|
76 |
|
---|
77 | DWORD WIN32API mciGetDriverData(UINT uDeviceID)
|
---|
78 | {
|
---|
79 | dprintf(("WINMM:mciGetDriverData - stub\n"));
|
---|
80 | return 0;
|
---|
81 | }
|
---|
82 |
|
---|
83 | BOOL WIN32API mciGetErrorStringA( MCIERROR mcierr, LPSTR pszText, UINT cchText )
|
---|
84 | {
|
---|
85 | dprintf(("WINMM:mciGetErrorStringA(%d)\n", mcierr ));
|
---|
86 | char * theMsg = getWinmmMsg( mcierr );
|
---|
87 | if ( theMsg )
|
---|
88 | strncpy( pszText, theMsg, cchText );
|
---|
89 | else
|
---|
90 | {
|
---|
91 | char errMsg[100];
|
---|
92 | sprintf( errMsg, "Unknown error number %d", mcierr );
|
---|
93 | strncpy( pszText, errMsg, cchText );
|
---|
94 | }
|
---|
95 | return TRUE;
|
---|
96 | }
|
---|
97 |
|
---|
98 | BOOL WIN32API mciGetErrorStringW( MCIERROR mcierr, LPWSTR pszText, UINT cchText )
|
---|
99 | {
|
---|
100 | dprintf(("WINMM:mciGetErrorStringW(%d)\n", mcierr ));
|
---|
101 | char * theMsg = getWinmmMsg( mcierr );
|
---|
102 | if ( theMsg )
|
---|
103 | AsciiToUnicode( theMsg, pszText );
|
---|
104 | else
|
---|
105 | {
|
---|
106 | char errMsg[100];
|
---|
107 | sprintf( errMsg, "Unknown error number %d", mcierr );
|
---|
108 | AsciiToUnicode( errMsg, pszText );
|
---|
109 | }
|
---|
110 | return TRUE;
|
---|
111 | }
|
---|
112 |
|
---|
113 | YIELDPROC WIN32API mciGetYieldProc(MCIDEVICEID mciId, LPDWORD pdwYieldData)
|
---|
114 | {
|
---|
115 | dprintf(("WINMM:mciGetYieldProc - stub\n"));
|
---|
116 | return 0;
|
---|
117 | }
|
---|
118 |
|
---|
119 | UINT WIN32API mciLoadCommandResource(HINSTANCE hInstance, LPCWSTR lpResName, UINT uType)
|
---|
120 | {
|
---|
121 | dprintf(("WINMM:mciLoadCOmmandResource - stub\n"));
|
---|
122 | return 0;
|
---|
123 | }
|
---|
124 |
|
---|
125 | MCIERROR WIN32API mciSendCommandA(MCIDEVICEID mciId, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
|
---|
126 | {
|
---|
127 | dprintf(("WINMM:mciSendCommandA - stub %X %X %X %X\n", mciId, uMsg, dwParam1, dwParam2));
|
---|
128 | return(MMSYSERR_NODRIVER);
|
---|
129 | }
|
---|
130 |
|
---|
131 | MCIERROR WIN32API mciSendCommandW(MCIDEVICEID mciId, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
|
---|
132 | {
|
---|
133 | dprintf(("WINMM:mciSendCommandW - stub %X %X %X %X\n", mciId, uMsg, dwParam1, dwParam2));
|
---|
134 | return(MMSYSERR_NODRIVER);
|
---|
135 | }
|
---|
136 |
|
---|
137 | MCIERROR WIN32API mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrReturnString, UINT uReturnLength, HWND hwndCallback)
|
---|
138 | {
|
---|
139 | dprintf(("WINMM:mciSendStringA - stub\n"));
|
---|
140 | return(MMSYSERR_NODRIVER);
|
---|
141 | }
|
---|
142 |
|
---|
143 | MCIERROR WIN32API mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrReturnString, UINT uReturnLength, HWND hwndCallback)
|
---|
144 | {
|
---|
145 | dprintf(("WINMM:mciSendStringW - stub\n"));
|
---|
146 | return(MMSYSERR_NODRIVER);
|
---|
147 | }
|
---|
148 |
|
---|
149 | BOOL WIN32API mciSetDriverData(UINT uDeviceID, DWORD dwData)
|
---|
150 | {
|
---|
151 | dprintf(("WINMM:mciSetDriverData - stub\n"));
|
---|
152 | return FALSE;
|
---|
153 | }
|
---|
154 |
|
---|
155 | BOOL WIN32API mciSetYieldProc(MCIDEVICEID mciId, YIELDPROC fpYieldProc, DWORD dwYieldData)
|
---|
156 | {
|
---|
157 | dprintf(("WINMM:mciSetYieldProc - stub\n"));
|
---|
158 | return FALSE;
|
---|
159 | }
|
---|
160 |
|
---|