ObjectCallbackSet Method (MPreviewClass)
callback function
Sets the callback (for C++ and Delphi, for other languages use events). This method blocks the video stream.
Syntax
Public Overridable Sub ObjectCallbackSet( _
   ByVal _pCallback As IMCallback, _
   ByVal _llCallbackUserData As Long _
) 
public virtual void ObjectCallbackSet( 
   IMCallback _pCallback,
   long _llCallbackUserData
)
public procedure ObjectCallbackSet( 
    _pCallback: IMCallback;
    _llCallbackUserData: Int64
); virtual; 
public: virtual void ObjectCallbackSet( 
   IMCallback* _pCallback,
   long _llCallbackUserData
) 

Parameters

_pCallback
callback function
_llCallbackUserData
Example
var
cookie: LONG_PTR;
myPlaylist: MPlaylist;
myObject: IMObject;
myEvents TEvents;
begin
myEvents := TEvents.Create()
myPlaylist:= CreateComObject(CLASS_MPlatlist) as MPlaylist;
myObject:= myPlaylist as IMObject;
myObject.ObjectCallbackSet(myEvents, cookie);
end.
See Also

Reference

MPreviewClass Class
MPreviewClass Members