次の方法で共有


IDirectMusicBuffer8::GetNextEvent

Warning: This technology is deprecated as is all of DirectMusic. Deprecated components are considered obsolete. While these components are still supported, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Deprecated.

The GetNextEvent method returns information about the next message in the buffer and advances the read pointer.

Syntax

  
    HRESULT GetNextEvent(
  LPREFERENCE_TIME 
    prt
    , 
  LPDWORD pdwChannelGroup, 
  LPDWORD pdwLength, 
  LPBYTE* ppData
);

Parameters

prt

Address of a variable that receives the time of the message.

pdwChannelGroup

Address of a variable that receives the channel group of the message.

pdwLength

Address of a variable that receives the length, in bytes, of the message.

ppData

Address of a variable that receives a pointer to the message data.

Return Values

If the method succeeds, the return value is S_OK, or S_FALSE if there are no messages in the buffer.

If it fails, the method can return E_POINTER.

Remarks

Any of the passed pointers can be NULL if the item is not needed.

The pointer returned in ppData is valid only for the lifetime of the buffer object.

Requirements

**  Minimum Supported Client:** Windows 2000.
**  Minimum Supported Server:** Windows 2000 Server.

**  Header:** Dmusicc.h

See Also

© 2004 Microsoft Corporation. All rights reserved.