Author: William Gerbert
Answer:
Displaying the multimedia properties dialog from the control panel is very easy
with the following code; the secret is to know to call rundll32.
1 begin
2 // Audio
3 WinExec('rundll32 shell32.dll,Control_RunDLL MMSys.cpl,,0', SW_SHOW);
4 // Video
5 WinExec('rundll32 shell32.dll,Control_RunDLL MMSys.cpl,,1', SW_SHOW);
6 // Midi
7 WinExec('rundll32 shell32.dll,Control_RunDLL MMSys.cpl,,2', SW_SHOW);
8 // CD Music
9 WinExec('rundll32 shell32.dll,Control_RunDLL MMSys.cpl,,3', SW_SHOW);
10 end;
|