Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ MmStatus

Media Vault

Software Library

Restoration Projects

Artifacts Sought

MmStatus

[Previous] [Contents] [Index] [Next]

MmStatus()

Return the status of a multimedia graph or filter

Synopsis:

int32_t MmStatus(const void *element);

Arguments:

element
A pointer to a graph or filter.

Library:

mmedia

Description:

This function returns the status of the media element. If the status isn't an error, it's a positive number:

  • MM_STATUS_PLAYING
  • MM_STATUS_PAUSING
  • MM_STATUS_PAUSED
  • MM_STATUS_EOF
  • MM_STATUS_STOPPING
  • MM_STATUS_STOPPED
  • MM_STATUS_TIMEDOUT

Returns:

>0
Success.
<0
An error occurred.

Examples:

  // Assuming the given graph is created, and hooked up,
  // and we want to know the current status (running, not
  // running, paused, playing, etc.)

  int32_t status=MmStatus(graph);

  //
  // Assuming the given filter is created, and hooked up,
  // and we want to know the current status (running, not
  // running, paused, playing, etc.)

  int32_t status=MmStatus(filter);

Classification:

Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

MmGetResourceValue()


[Previous] [Contents] [Index] [Next]

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026