SetResource()

Synopsis:

#include <aoi.h>

int32_t (*SetResource)(void *ctx,
                       const char *resource,
                       const void *data);

Arguments:

ctx
A pointer to the control that contains the resource you want to set.
resource
The resource you want to set.
data
A pointer to the data you want to set the resource to.

Description:

This function should set the value in a specific resource. You should be sure of the type of values you can set.

Returns:

0 if successful.