注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

面包会有的

...

 
 
 

日志

 
 

mmioGetInfo  

2011-11-15 01:03:04|  分类: 声音播放 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

The mmioGetInfo function retrieves information about a file opened by using the mmioOpen function. This information allows the application to directly access the I/O buffer, if the file is opened for buffered I/O.

本函数查询一个文件的信息,此文件被mmioOpen函数打开。这个信息允许应用程序直接操作I/O缓冲。如果文件是打开的缓冲I/O?

Syntax

MMRESULT mmioGetInfo(   HMMIO hmmio,   LPMMIOINFO lpmmioinfo,   UINT wFlags ); 

Parameters

hmmio

File handle of the file.

文件句柄

lpmmioinfo

Pointer to a buffer that receives an MMIOINFO structure that mmioGetInfo fills with information about the file.

指向一个缓冲,它用来接受一个MMIOINFO结构体,本函数用文件信息填充这个结构。

wFlags

Reserved; must be zero.

保留,必须为0

Return value

Returns zero if successful or an error otherwise.

如果成功返回0

Remarks

To directly access the I/O buffer of a file opened for buffered I/O, use the following members of theMMIOINFO structure filled by mmioGetInfo:

为了直接操作一个打开的文件缓冲I/O的I/O缓冲区,使用后面的结构成员

  • The pchNext member points to the next byte in the buffer that can be read or written. When you read or write, increment pchNext by the number of bytes read or written.
  • The pchEndRead member points to 1 byte past the last valid byte in the buffer that can be read.
  • The pchEndWrite member points to 1 byte past the last location in the buffer that can be written.

After you read or write to the buffer and modify pchNext, do not call any multimedia file I/O functions except mmioAdvance until you call the mmioSetInfo function. Call mmioSetInfo when you are finished directly accessing the buffer.

When you reach the end of the buffer specified by the pchEndRead or pchEndWrite member, callmmioAdvance to fill the buffer from the disk or write the buffer to the disk. The mmioAdvancefunction updates the pchNextpchEndRead, and pchEndWrite members in the MMIOINFO structure for the file.

Before calling mmioAdvance or mmioSetInfo to flush a buffer to disk, set the MMIO_DIRTY flag in thedwFlags member of the MMIOINFO structure for the file. Otherwise, the buffer will not be written to disk.

Do not decrement pchNext or modify any members in the MMIOINFO structure other than pchNextand dwFlags. Do not set any flags in dwFlags except MMIO_DIRTY.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

 

 

Send comments about this topic to Microsoft

Build date: 9/7/2011


http://msdn.microsoft.com/en-us/library/dd757321(v=VS.85).aspx

  评论这张
 
阅读(580)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017