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