Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
af524f54
Commit
af524f54
authored
Mar 22, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented mciExecute.
parent
70813950
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
mcistring.c
multimedia/mcistring.c
+24
-4
No files found.
multimedia/mcistring.c
View file @
af524f54
...
@@ -78,7 +78,7 @@ _MCISTR_printtf(char *buf, UINT16 uDevType, DWORD timef, DWORD val)
...
@@ -78,7 +78,7 @@ _MCISTR_printtf(char *buf, UINT16 uDevType, DWORD timef, DWORD val)
MCI_TMSF_TRACK
(
val
),
MCI_TMSF_TRACK
(
val
),
MCI_TMSF_MINUTE
(
val
),
MCI_TMSF_MINUTE
(
val
),
MCI_TMSF_SECOND
(
val
),
MCI_TMSF_SECOND
(
val
),
MCI_TMSF_FRAME
(
val
)
);
MCI_TMSF_FRAME
(
val
));
break
;
break
;
default:
default:
FIXME
(
mci
,
"missing timeformat for %ld, report.
\n
"
,
timef
);
FIXME
(
mci
,
"missing timeformat for %ld, report.
\n
"
,
timef
);
...
@@ -2044,7 +2044,7 @@ struct _MCISTR_cmdtable {
...
@@ -2044,7 +2044,7 @@ struct _MCISTR_cmdtable {
* it is used. (imagine "close all"). Not implemented yet.
* it is used. (imagine "close all"). Not implemented yet.
*/
*/
DWORD
WINAPI
mciSendString16
(
LPCSTR
lpstrCommand
,
LPSTR
lpstrReturnString
,
DWORD
WINAPI
mciSendString16
(
LPCSTR
lpstrCommand
,
LPSTR
lpstrReturnString
,
UINT16
uReturnLength
,
HWND16
hwndCallback
)
UINT16
uReturnLength
,
HWND16
hwndCallback
)
{
{
char
*
cmd
,
*
dev
,
*
args
,
**
keywords
,
*
filename
;
char
*
cmd
,
*
dev
,
*
args
,
**
keywords
,
*
filename
;
WORD
uDevTyp
=
0
,
wDevID
=
0
;
WORD
uDevTyp
=
0
,
wDevID
=
0
;
...
@@ -2155,7 +2155,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
...
@@ -2155,7 +2155,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
* mciSendStringA [MMSYSTEM.702][WINMM.51]
* mciSendStringA [MMSYSTEM.702][WINMM.51]
*/
*/
DWORD
WINAPI
mciSendStringA
(
LPCSTR
lpstrCommand
,
LPSTR
lpstrReturnString
,
DWORD
WINAPI
mciSendStringA
(
LPCSTR
lpstrCommand
,
LPSTR
lpstrReturnString
,
UINT
uReturnLength
,
HWND
hwndCallback
)
UINT
uReturnLength
,
HWND
hwndCallback
)
{
{
return
mciSendString16
(
lpstrCommand
,
lpstrReturnString
,
uReturnLength
,
hwndCallback
);
return
mciSendString16
(
lpstrCommand
,
lpstrReturnString
,
uReturnLength
,
hwndCallback
);
}
}
...
@@ -2164,7 +2164,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
...
@@ -2164,7 +2164,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
* mciSendStringW [WINMM.52]
* mciSendStringW [WINMM.52]
*/
*/
DWORD
WINAPI
mciSendStringW
(
LPCWSTR
lpwstrCommand
,
LPSTR
lpstrReturnString
,
DWORD
WINAPI
mciSendStringW
(
LPCWSTR
lpwstrCommand
,
LPSTR
lpstrReturnString
,
UINT
uReturnLength
,
HWND
hwndCallback
)
UINT
uReturnLength
,
HWND
hwndCallback
)
{
{
LPSTR
lpstrCommand
;
LPSTR
lpstrCommand
;
UINT
ret
;
UINT
ret
;
...
@@ -2175,3 +2175,23 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpwstrCommand, LPSTR lpstrReturnString,
...
@@ -2175,3 +2175,23 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpwstrCommand, LPSTR lpstrReturnString,
HeapFree
(
GetProcessHeap
(),
0
,
lpstrCommand
);
HeapFree
(
GetProcessHeap
(),
0
,
lpstrCommand
);
return
ret
;
return
ret
;
}
}
/**************************************************************************
* mciExecute [WINMM.38]
*/
DWORD
WINAPI
mciExecute
(
LPCSTR
lpstrCommand
)
{
char
strRet
[
256
];
DWORD
ret
;
FIXME
(
mci
,
"(%s) stub!
\n
"
,
lpstrCommand
);
ret
=
mciSendString16
(
lpstrCommand
,
strRet
,
sizeof
(
strRet
),
0
);
if
(
ret
!=
0
)
{
if
(
!
mciGetErrorString16
(
ret
,
strRet
,
sizeof
(
strRet
)))
{
sprintf
(
strRet
,
"Unknown MCI Error (%ld)"
,
ret
);
}
MessageBoxA
(
0
,
strRet
,
"Error in mciExecute()"
,
MB_OK
);
}
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment