Click to open or copy the files for the MCIapp sample.
This is a sample application that demonstrates how to use the Media Control Interface (MCI) in Windows. This application is also useful as an MCI device tester.
This sample uses the following keywords:
_lclose; _llseek; _lread; _lwrite; appchoosefont; appcreate; appdropfiles; appendsession; appexit; appfilenew; appfileopen; appfilesave; appgetfilename; appgetfiletitle; appgetwindowsversion; apphourglass; appinit; appinitmenupopup; appmsgboxid; appprofilereadbytes; appprofilewritebytes; appqueryendsession; appregisterpenapp; appsetwindowtext; appsetwindowtextid; appsize; apptitle; appwininichanged; appyield; atol; char2nibble; checkmenuitem; choosefont; closehandle; createdialog; createfile; createfontindirect; createwindow; createwindowex; dbgenable; dbginitialize; dbgsetlevel; dbgvprintf; debugbreak; defined; defwindowproc; deletefont; destroywindow; dialogbox; dispatchmessage; dpf; dprintf; dragfinish; dragqueryfile; edit_canundo; edit_getline; edit_getlinecount; edit_getmodify; edit_getselex; edit_limittext; edit_linefromchar; edit_lineindex; edit_replacesel; edit_setmodify; edit_setsel; enablemenuitem; enablewindow; enddialog; flag; forward_wm_close; forward_wm_command; forward_wm_keydown; forward_wm_keyup; get_em_linescroll_mps; get_em_setsel_end; get_em_setsel_mps; get_em_setsel_start; get_wm_activate_fminimized; get_wm_activate_hwnd; get_wm_activate_mps; get_wm_activate_state; get_wm_changecbchain_hwndnext; get_wm_chartoitem_char; get_wm_chartoitem_hwnd; get_wm_chartoitem_mps; get_wm_chartoitem_pos; get_wm_command_cmd; get_wm_command_hwnd; get_wm_command_id; get_wm_command_mps; get_wm_ctlcolor_hdc; get_wm_ctlcolor_hwnd; get_wm_ctlcolor_mps; get_wm_ctlcolor_type; get_wm_hscroll_code; get_wm_hscroll_hwnd; get_wm_hscroll_mps; get_wm_hscroll_pos; get_wm_mdiactivate_factivate; get_wm_mdiactivate_hwndactivate; get_wm_mdiactivate_hwnddeact; get_wm_mdiactivate_mps; get_wm_mdisetmenu_mps; get_wm_menuchar_char; get_wm_menuchar_fmenu; get_wm_menuchar_hmenu; get_wm_menuchar_mps; get_wm_menuselect_cmd; get_wm_menuselect_flags; get_wm_menuselect_hmenu; get_wm_menuselect_mps; get_wm_parentnotify2_mps; get_wm_parentnotify_hwndchild; get_wm_parentnotify_id; get_wm_parentnotify_mps; get_wm_parentnotify_msg; get_wm_parentnotify_x; get_wm_parentnotify_y; get_wm_vkeytoitem_code; get_wm_vkeytoitem_hwnd; get_wm_vkeytoitem_item; get_wm_vkeytoitem_mps; get_wm_vscroll_code; get_wm_vscroll_hwnd; get_wm_vscroll_mps; get_wm_vscroll_pos; getactivewindow; getasynckeystate; getclientrect; getcommandline; getdc; getdesktopwindow; getdlgitem; getdlgitemint; getfilesize; getfocus; getkeystate; getmessage; getobject; getopenfilename; getparent; getprocaddress; getprofileint; getprofileinta; getprofilestring; getsavefilename; getstockfont; getsysteminfo; getsystemmetrics; gettextextentpoint; gettextmetrics; getversion; getwindowfont; getwindowplacement; getwindowrect; getwindowtext; getwindowtexta; getwindowtextlength; getwinflags; globalallocptr; globalfreeptr; handle_wm_close; handle_wm_command; handle_wm_create; handle_wm_endsession; handle_wm_initmenupopup; handle_wm_queryendsession; handle_wm_size; handle_wm_wininichange; invalidaterect; is_eol; is_slash; is_space; is_white; isclipboardformatavailable; isdialogmessage; listbox_addstring; listbox_getcursel; listbox_resetcontent; listbox_setcursel; loadaccelerators; loadcursor; loadicon; loadstring; localalloc; localfree; lstrcat; lstrcata; lstrcmp; lstrcmpi; lstrcpy; lstrlena; makeintresource; makelong; makelparam; mciappchoosefont; mciappclosealldevices; mciappdebuglog; mciappdevicelist; mciappdevicelistupdate; mciappdispatchmessage; mciappenterline; mciappexecute; mciappexit; mciappfilenew; mciappfileopen; mciappfilesave; mciappfilesavemodified; mciappgetline; mciappgetnumdevices; mciapphandlenotify; mciappinit; mciappinternalcommand; mciappresetstatus; mciappsendstring; mciappsettingsrestore; mciappsettingssave; mciappshutdown; mciappsinglestep; mciappupdateoptions; mcigeterrorstring; mcisendcommand; mcisendstring; memset; messagebeep; messagebox; movewindow; nibble2char; notify; openfile; outputdebugstring; outputdebugstringa; parameter; peekmessage; postquitmessage; processor; ptinrect; rcid; readfile; registerclass; releasedc; selectfont; sendmessage; setactivewindow; setcursor; setdlgitemint; setfocus; setwindowfont; setwindowplacement; setwindowredraw; setwindowtext; setwindowtexta; setwindowtextw; showcursor; showwindow; sleep; strtok; switch; text; timegettime; translateaccelerator; translatemessage; updatewindow; va_end; va_start; warning; writefile; writeprofilestring; wsprintf; wvsprintf; wvsprintfa