다음을 통해 공유


ISpMMSysAudio::GetMMHandle (Windows CE 5.0)

Send Feedback

This method gets a multimedia audio device stream handle. The audio object must not be in the SPAS_CLOSED state or this call will fail because the multimedia device will not have been opened yet. The caller must not close the retrieved handle. The caller must not use the handle either after changing the state of the audio object to SPAS_CLOSED or after releasing the object.

HRESULT GetMMHandle(void** pHandle);

Parameters

  • pHandle
    Address of a pointer to the wave-in or wave-out device handle.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_POINTER pHandle is invalid.
SPERR_UNINITIALIZED Audio object is in the SPAS_CLOSED state.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.

See Also

ISpMMSysAudio | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.