Export (0) Print
Expand All

IVMRSurfaceAllocatorNotify9::NotifyEvent method

The NotifyEvent method is called by the allocator-presenter to inform the VMR of any significant DirectShow events that it (the allocator presenter) generates during the allocation or presentation processes.

Syntax


HRESULT NotifyEvent(
  [in] LONG     EventCode,
  [in] LONG_PTR Param1,
  [in] LONG_PTR Param2
);

Parameters

EventCode [in]

Specifies the DirectShow event code.

Param1 [in]

Specifies the first event parameter. The meaning depends on the event code. See Event Notification Codes.

Param2 [in]

Specifies the second event parameter. The meaning depends on the event code.

Return value

The method returns an HRESULT. Possible values include those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

The VMR provides the allocator-presenter with a pointer to this interface in a call to IVMRSurfaceAllocator9::AdviseNotify. When the allocator-presenter calls this method and specifies some regular DirectShow event, such as EC_ERRORABORT or EC_VMR_RENDERDEVICE_SET, the VMR will pass the event to the filter graph manager.

Include DShow.h and D3d9.h before Vmr9.h.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 R2 [desktop apps only]

Header

Vmr9.h

Library

Strmiids.lib

See also

Using the Video Mixing Renderer
IVMRSurfaceAllocatorNotify9 Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft