# MB_FakeEntryToParent

## Syntax

  `#include <nitro/mb/mb_fake_child.h>`
  `BOOL MB_FakeEntryToParent( u16 index );`

## Arguments

index | The parent's management index, obtained during scanning. Specify this index to gain entry to the parent. This index is obtained from a member of the scanning callback structure `MBFakeScanCallback`.

## Return Values

TRUE if the argument is a valid parent index. FALSE otherwise.

## Description

This function begins entry to a multiboot parent. The parent's specifications are performed using the parent's management index obtained during scanning. Executing this function leads automatically to this series of processes:
Connect to parent -> Entry process -> Fake download process -> Boot preparations -> Disconnect.
The `MB_FakeSetCStateCallback` function sets a callback function to report the execution state. All processes have ended when the `MB_COMM_CSTATE_BOOT_READY` callback has been notified, so at that point it is okay to end the multiboot process using the `MB_FakeEnd` function and begin the process of reconnecting to the parent device. If you cannot gain entry to the parent or if a communication error causes processing to terminate abnormally, you must temporarily end the multiboot process using the `MB_FakeEnd` function, and then start over from the `MB_FakeInit` function.

## See Also

`MB_FakeInit, MB_FakeEnd, MB_FakeSetCStateCallback`

## Revision History

2004/11/25 Initial version.

CONFIDENTIAL