ILMDVRSink::CreateEvents2

Summary

Creates the windows event objects used by the DVRSink to signal data write and recording list changed events.

Syntax

#include "ILMDVRSink.h"

Language Syntax
C HRESULT ILMDVRSink_CreateEvents2(pILMDVRSink, nRegistrationID, TargetProcessID, pDataWrittenEvent, pRecordingListChangedEvent, pOffsetReachedEvent)
C++ HRESULT CreateEvents(nRegistrationID, TargetProcessID, pDataWrittenEvent, pRecordingListChangedEvent, pOffsetReachedEvent)

Parameters

ILMDVRSink *pILMDVRSink

Pointer to an ILMDVRSink interface.

long nRegistrationID

A unique identifier for this event registration.

long TargetProcessID

The process id of the event subscriber.

OLE_HANDLE *pDataWrittenEvent

Pointer to a handle for the write event.

OLE_HANDLE *pRecordingListChangedEvent

Pointer to a handle for the list changed event.

OLE_HANDLE *pOffsetReachedEvent

Pointer to a handle for the offset reached event.

Returns

Value Meaning
S_OK The function was successful.
E_OUTOFMEMORY Memory allocation error was encountered.
<>S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Whenever data is written to a buffer file, the windows event for the returned write event handle will be set.

Likewise, when a buffer file is created or closed, the windows event for the list changed event handle will be set.

Also, when data is written past the offset indicated by ILMDVRSink::SetOffsetToReach method, the offset reached event is set.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C ILMDVRSink::SetOffsetToReach
C++ ILMDVRSink::SetOffsetToReach
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.