1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MB_UnregisterFile</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MB_UnregisterFile <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/mb.h&gt;</CODE><BR>
20  <BR>
21  <CODE>void* MB_UnregisterFile(const <A href="../mb_game_registry_type.html">MBGameRegistry</A> *game_reg);</CODE><br>
22  <br>
23  </dd>
24</dl>
25<h2>Arguments</h2>
26<p>
27<TABLE border="1" width="100%">
28  <TBODY>
29    <TR>
30      <TD width="13%"><EM><STRONG>game_reg</STRONG></EM></TD>
31      <TD width="87%">Pointer to a <CODE><A href="../mb_game_registry_type.html">MBGameRegistry</A></CODE> structure that stores the information of the registered program to unregister.</TD>
32    </TR>
33  </TBODY>
34</TABLE>
35</p>
36
37<h2>Return Values</h2>
38<p>Returns a pointer if it successfully unregisters the registered program. Otherwise, it returns NULL.</p>
39
40<H2>Description</H2>
41<P>This function unregisters a specified, registered program from the download program list. As part of this unregistration process, the segment information's memory buffer specified by the <CODE><A href="MB_RegisterFile.html">MB_RegisterFile</A></CODE> function will be released to the user side.<br> <br>
42<H2>Note</H2>
43<p><font color="#800000">The <CODE>MB_RegisterFile</CODE> function cannot be called after this function has been called once or more.<br> To change the program's registered contents, you must first temporarily close the MB library by calling the <CODE>MB_End</CODE> function, change the TGID, and then restart the library.</font> <br></CODE></p>
44<h2>See Also</h2>
45<p><CODE><A href="../mb_game_registry_type.html">MBGameRegistry</A>, <A href="MB_GetSegmentLength.html">MB_GetSegmentLength</A>, <A href="MB_ReadSegment.html">MB_ReadSegment</A>, <A href="MB_RegisterFile.html">MB_RegisterFile</A></CODE></P>
46<H2>Revision History</H2>
47<P>
482004/10/18 Added a Caution about the restriction affecting <CODE>MB_RegisterFile</CODE>.<br> 2004/09/30 Changed return values.<br> 2004/09/09 Initial version.
49</P>
50<hr><p>CONFIDENTIAL</p></body>
51</html>
52