Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFAddPeriodicCallback
Collapse the table of content
Expand the table of content

MFAddPeriodicCallback function

Sets a callback function to be called at a fixed interval.

Syntax


HRESULT MFAddPeriodicCallback(
  _In_  MFPERIODICCALLBACK Callback,
  _In_  IUnknown           *pContext,
  _Out_ DWORD              *pdwKey
);

Parameters

Callback [in]

Pointer to the callback function, of type MFPERIODICCALLBACK.

pContext [in]

Pointer to a caller-provided object that implements IUnknown, or NULL. This parameter is passed to the callback function.

pdwKey [out]

Receives a key that can be used to cancel the callback. To cancel the callback, call MFRemovePeriodicCallback and pass this key as the dwKey parameter.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The function succeeded.

 

Remarks

To get the timer interval for the periodic callback, call MFGetTimerPeriodicity.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
Work Queues

 

 

Community Additions

ADD
Show:
© 2015 Microsoft