Author: dchapyshev
Date: Wed Mar 11 13:57:05 2009
New Revision: 39948
URL:
http://svn.reactos.org/svn/reactos?rev=39948&view=rev
Log:
- Add mplay32 to bootcd
- Opening .wav, .cda, .avi, .mid files with mplay32
Modified:
trunk/reactos/base/applications/mplay32/mplay32.c
trunk/reactos/boot/bootdata/hivecls_arm.inf
trunk/reactos/boot/bootdata/hivecls_i386.inf
trunk/reactos/boot/bootdata/packages/reactos.dff
Modified: trunk/reactos/base/applications/mplay32/mplay32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mplay32/…
==============================================================================
--- trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] Wed Mar 11 13:57:05
2009
@@ -419,7 +419,6 @@
if (GetFileAttributes(szLocalFileName) == INVALID_FILE_ATTRIBUTES)
{
- MessageBox(hwnd, _T("Wrong path to a file!"), NULL, MB_OK);
return;
}
@@ -689,6 +688,8 @@
ShowWindow(hwnd, SW_SHOW);
UpdateWindow(hwnd);
+ PlayFile(hwnd, lpCmdLine);
+
/* Message Loop */
while (GetMessage(&msg, NULL, 0, 0))
{
Modified: trunk/reactos/boot/bootdata/hivecls_arm.inf
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivecls_arm.…
==============================================================================
--- trunk/reactos/boot/bootdata/hivecls_arm.inf [iso-8859-1] (original)
+++ trunk/reactos/boot/bootdata/hivecls_arm.inf [iso-8859-1] Wed Mar 11 13:57:05 2009
@@ -270,11 +270,26 @@
HKCR,".wav","",0x00000000,"SoundRec"
HKCR,"SoundRec","",0x00000000,"Wave Sound"
HKCR,"SoundRec\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225"
+HKCR,"SoundRec\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
+
+; Midi Sounds
+HKCR,".mid","",0x00000000,"MIDFile"
+HKCR,".midi","",0x00000000,"MIDFile"
+HKCR,"MIDFile","",0x00000000,"MIDI Sequence"
+HKCR,"MIDFile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225"
+HKCR,"MIDFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
+
+; Audio CD
+HKCR,".cda","",0x00000000,"CDAFile"
+HKCR,"CDAFile","",0x00000000,"CD Audio Track"
+HKCR,"CDAFile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225"
+HKCR,"CDAFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
; Avi Files
HKCR,".avi","",0x00000000,"AVIFile"
HKCR,"AVIFile","",0x00000000,"Video Clip"
HKCR,"AVIFile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-224"
+HKCR,"AVIFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
HKCR,"CLSID",,0x00000012
Modified: trunk/reactos/boot/bootdata/hivecls_i386.inf
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/hivecls_i386…
==============================================================================
--- trunk/reactos/boot/bootdata/hivecls_i386.inf [iso-8859-1] (original)
+++ trunk/reactos/boot/bootdata/hivecls_i386.inf [iso-8859-1] Wed Mar 11 13:57:05 2009
@@ -266,11 +266,26 @@
HKCR,".wav","",0x00000000,"SoundRec"
HKCR,"SoundRec","",0x00000000,"Wave Sound"
HKCR,"SoundRec\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225"
+HKCR,"SoundRec\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
+
+; Midi Sounds
+HKCR,".mid","",0x00000000,"MIDFile"
+HKCR,".midi","",0x00000000,"MIDFile"
+HKCR,"MIDFile","",0x00000000,"MIDI Sequence"
+HKCR,"MIDFile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225"
+HKCR,"MIDFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
+
+; Audio CD
+HKCR,".cda","",0x00000000,"CDAFile"
+HKCR,"CDAFile","",0x00000000,"CD Audio Track"
+HKCR,"CDAFile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-225"
+HKCR,"CDAFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
; Avi Files
HKCR,".avi","",0x00000000,"AVIFile"
HKCR,"AVIFile","",0x00000000,"Video Clip"
HKCR,"AVIFile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-224"
+HKCR,"AVIFile\shell\open\command","",0x00020000,"%SystemRoot%\system32\mplay32.exe
%1"
HKCR,"CLSID",,0x00000012
Modified: trunk/reactos/boot/bootdata/packages/reactos.dff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
==============================================================================
--- trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] (original)
+++ trunk/reactos/boot/bootdata/packages/reactos.dff [iso-8859-1] Wed Mar 11 13:57:05
2009
@@ -50,6 +50,7 @@
base\applications\kbswitch\kbswitch.exe 1
base\applications\kbswitch\kbsdll\kbsdll.dll 1
base\applications\logoff\logoff.exe 1
+base\applications\mplay32\mplay32.exe 1
base\applications\msconfig\msconfig.exe 1
base\applications\mstsc\mstsc.exe 1
base\applications\network\arp\arp.exe 1