# MB_UnregisterFile

## C Specification

      #include <nitro/mb.h>

      void* MB_UnregisterFile(const MBGameRegistry *game_reg);

## Description

This function unregisters a specified, registered program from the download program list. This unregister process releases the segment information memory buffer specified by `MB_RegisterFile` to the user side.

## Caution

If this function is called more than once, the `MB_RegisterFile` function cannot be called. To change the registered contents of the program, you must close the MB library by calling the `MB_End` function once, change the `TGID`, and restart.

## Arguments

`game_reg` | Pointer to the `MBGameRegistry` structure that holds the information for the registered program to be unregistered.

## Return Values

Returns a pointer if it successfully unregisters the registered program. Otherwise, it returns NULL.

## See Also

`MBGameRegistry, MB_GetSegmentLength, MB_ReadSegment, MB_RegisterFile`

## Revision History

10/18/2004 Added a Caution about the restriction affecting `MB_RegisterFile`.
09/30/2004 Changed return values.
09/09/2004 Initial version.