- Add mplay32 to bootcd

- Opening .wav, .cda, .avi, .mid files with mplay32

svn path=/trunk/; revision=39948
This commit is contained in:
Dmitry Chapyshev 2009-03-11 10:57:05 +00:00
parent edc8b4e894
commit 689f247b95
4 changed files with 33 additions and 1 deletions

View file

@ -419,7 +419,6 @@ PlayFile(HWND hwnd, LPWSTR lpFileName)
if (GetFileAttributes(szLocalFileName) == INVALID_FILE_ATTRIBUTES)
{
MessageBox(hwnd, _T("Wrong path to a file!"), NULL, MB_OK);
return;
}
@ -689,6 +688,8 @@ _tWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPTSTR lpCmdLine, INT nCmdShow)
ShowWindow(hwnd, SW_SHOW);
UpdateWindow(hwnd);
PlayFile(hwnd, lpCmdLine);
/* Message Loop */
while (GetMessage(&msg, NULL, 0, 0))
{

View file

@ -270,11 +270,26 @@ HKCR,"InternetShortcut\DefaultIcon","",0x00020000,"%SystemRoot%\system32\url.dll
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

View file

@ -266,11 +266,26 @@ HKCR,".url","",0x00000000,"InternetShortcut"
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

View file

@ -50,6 +50,7 @@ base\applications\hh\hh.exe 4
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