Microsoft Windows CE 3.0  

IDsCaptureDriver::Close

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the object back to system use, that is, when DirectSound no longer requires use of the IDsCaptureDriver::CreateCaptureBuffer, and IDsCaptureDriver::GetCapsmethods.

HRESULT Close( );

Return Values

Returns DS_OK if successful, or DSERR_GENERICotherwise.

Remarks

The driver should deallocate any structures it allocated on the IDsCaptureDriver::Opencall, reset the hardware to a known state, and mark the device as unallocated. Once this method has been called, the Wave portion of the driver should be able to acquire the use of the hardware.

This method should not decrement the reference count on the DirectSound driver object. The reference count of an object should only be changed by the IUnknownmembers AddRefand Release.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.