mmioAscend

The mmioAscend function ascends out of a chunk in a RIFF file descended into with themmioDescend function or created with the mmioCreateChunk function.

ascend:上升

本函数

Syntax

MMRESULT mmioAscend(   HMMIO hmmio,   LPMMCKINFO lpck,   UINT wFlags ); 

Parameters

hmmio

File handle of an open RIFF file.

lpck

Pointer to an application-defined MMCKINFO structure previously filled by the mmioDescend ormmioCreateChunk function.

wFlags

Reserved; must be zero.

Return value

Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.

Return codeDescription
MMIOERR_CANNOTSEEK

There was an error while seeking to the end of the chunk.

MMIOERR_CANNOTWRITE

The contents of the buffer could not be written to disk.

 

Remarks

If the chunk was descended into by using mmioDescendmmioAscend seeks to the location following the end of the chunk (past the extra pad byte, if any).

If the chunk was created and descended into by using mmioCreateChunk, or if the MMIO_DIRTY flag is set in the dwFlags member of the MMCKINFO structure referenced by lpck, the current file position is assumed to be the end of the data portion of the chunk. If the chunk size is not the same as the value stored in the cksize member of the MMCKINFO structure when mmioCreateChunk was called,mmioAscend corrects the chunk size in the file before ascending from the chunk. If the chunk size is odd, mmioAscend writes a null pad byte at the end of the chunk. After ascending from the chunk, the current file position is the location following the end of the chunk (past the extra pad byte, if any).

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/dd757315(v=VS.85).aspx




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值