Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

MmSetResourceValue()

Set the value of a resource for a graph or filter

Synopsis:

int32_t MmSetResourceValue(const void *element,
                           const char *resource,
                           void *data);

Arguments:

element
A pointer to the graph or filter you want to set the resource for.
resource
The name of the resource you want to set the value of.
data
The value you want to set resource to.

Library:

mmedia

Description:

This function sets the resource data for element. The resource string is the same as in MmGetResource(). The data type depends on the resource type.

After changing a resource's value, you should reload any AOResource_t structures that your application currently has cached, because some or all of the resources could have been affected.

Returns:

0
Success.
-1
An error occurred.

Classification:

Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

MmGetResourceValue()