Share via


ISpStream::Close (Windows Embedded CE 6.0)

1/6/2010

This method closes the audio stream and validates the close operation. Releasing the ISpStream object automatically calls this method. The application is not notified of any errors encountered during release. Thus the application can explicitly call this method before stream release to check that no errors occurred during the close operation.

Syntax

HRESULT Close(void);

Parameters

None.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

SPERR_STREAM_CLOSED

The stream is closed or unavailable.

FAILED(hr)

Appropriate error message.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpStream
SAPI Interfaces