Index   Commented   Search   About

Installing Custom I/O Procedures

To install an I/O procedure associated with the .ARC filename extension, use the mmioInstallIOProc function as follows:

mmioInstallIOProc (mmioFOURCC('A', 'R', 'C', ' '),

(LPMMIOPROC)lpmmioproc, MMIO_INSTALLPROC);

When you install an I/O procedure using mmioInstallIOProc, the procedure remains installed until you remove it. The I/O procedure is used for any file you open as long as the file has the appropriate filename extension.

You can also temporarily install an I/O procedure by using the mmioOpen function. In this case, the I/O procedure is used only with a file opened by using mmioOpen and is removed when the file is closed by using the mmioClose function. To specify an I/O procedure when you open a file by using mmioOpen, use the lpmmioinfo parameter to reference an MMIOINFO structure as follows:

  1. Set the fccIOProc member to NULL.

  2. Set the pIOProc member to the procedure-instance address of the I/O procedure.

  3. Set all other members to zero (unless you are opening a memory file, or directly reading or writing to the file I/O buffer).

Be sure to remove any I/O procedures you have installed before you exit your application.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun