# WM_SetParentParameter

## C Specification

      #include <nitro/wm.h>

      WMErrCode WM_SetParentParameter(
                WMCallbackFunc    callback ,
          const WMParentParam     pparaBuf );

## Description

Sets the parameters that are required for a parent

This API must be executed once before the `WM_StartParent` is called.

This function is only executable when the WM is in the `IDLE` state. If the return value is `WM_ERRCODE_OPERATING`, a callback is generated after the parameter setting process is complete.

## Arguments

`callback` | The callback to call when an asynchronous process completes.
`pparaBuf` | Pointer to the structure that shows parent information. Notice that the `pparaBuf` and `pparaBuf–>userGameInfo` entities will be forcibly cached.

## Return Values

Returns the process result as a `WMErrCode` enumerated type.

## See Also

`WM_StartParent`, `WM_EndParent`, `WM_SetGameInfo`

## Revision History

10/22/2004 Changed return value type
08/02/2004 Standardized structure names
07/29/2004 Added descriptions
07/23/2004 Initial Version