|
MMIOINFO
The MMIOINFO structure contains the current state of a file opened by using the mmioOpen function.
typedef struct {
DWORD dwFlags;
FOURCC fccIOProc;
LPMMIOPROC pIOProc;
UINT wErrorRet;
HTASK hTask;
LONG cchBuffer;
HPSTR pchBuffer;
HPSTR pchNext;
HPSTR pchEndRead;
HPSTR pchEndWrite;
LONG lBufOffset;
LONG lDiskOffset;
DWORD adwInfo[4];
DWORD dwReserved1;
DWORD dwReserved2;
HMMIO hmmio;
} MMIOINFO;
Members
dwFlags
Flags specifying how a file was opened. The following values are defined:
MMIO_ALLOCBUF
File's I/O buffer was allocated by the mmioOpen or mmioSetBuffer function.
MMIO_CREATE
The mmioOpen function was directed to create the file (or truncate it to zero length if it
already existed).
MMIO_DIRTY
The I/O buffer has been modified.
MMIO_EXIST
Checks for the existence of the file.
MMIO_GETTEMP
A temporary name was retrieved by the mmioOpen function.
MMIO_PARSE
The new file's path is returned.
The following values may be set when the file is opened in share mode
(identified by using the MMIO_SHAREMODE bit mask):
MMIO_COMPAT
File was opened with compatibility mode, allowing any process on a given
machine to open the file any number of times.
MMIO_DENYNONE
Other processes are not denied read or write access to the file.
MMIO_DENYREAD
Other processes are denied read access to the file.
MMIO_DENYWRITE
Other processes are denied write access to the file.
MMIO_EXCLUSIVE
Other processes are denied read and write access to the file.
The following values may be set when the file is opened in read/write mode
(identified by using the MMIO_RWMODE bit mask):
MMIO_READ
File was opened only for reading.
MMIO_READWRITE
File was opened for reading and writing.
MMIO_WRITE
File was opened only for writing.
fccIOProc
Four-character code identifying the file's I/O procedure. If the I/O procedure
is not an installed I/O procedure, this member is NULL.
pIOProc
Address of file's IO procedure.
wErrorRet
Extended error value from the mmioOpen function if it returns NULL. This member is not used to return extended error
information from any other functions.
hTask
Handle of a local I/O procedure. Media Control Interface (MCI) devices that
perform file I/O in the background and need an I/O procedure can locate a local
I/O procedure with this handle.
cchBuffer
Size, in bytes, of the file's I/O buffer. If the file does not have an I/O
buffer, this member is zero.
pchBuffer
Address of the file's I/O buffer. If the file is unbuffered, this member is
NULL.
pchNext
Address of the next location in the I/O buffer to be read or written. If no
more bytes can be read without calling the mmioAdvance or mmioRead function, this member points to the pchEndRead member. If no more bytes can be written without calling the mmioAdvance or mmioWrite function, this member points to the pchEndWrite member.
pchEndRead
Address of the location that is 1 byte past the last location in the buffer
that can be read.
pchEndWrite
Address of the location that is 1 byte past the last location in the buffer
that can be written.
lBufOffset
Reserved.
lDiskOffset
Current file position, which is an offset, in bytes, from the beginning of the
file. I/O procedures are responsible for maintaining this member.
adwInfo
State information maintained by the I/O procedure. I/O procedures can also use
these members to transfer information from the application to the I/O
procedure when the application opens a file.
dwReserved1
Reserved.
dwReserved2
Reserved.
hmmio
Handle of the open file, as returned by the mmioOpen function. I/O procedures can use this handle when calling other multimedia
file I/O functions.
See Also
mmioAdvance, mmioOpen, mmioRead, mmioSetBuffer, mmioWrite
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|