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>CARD_GetRomHeader</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">CARD_GetRomHeader <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/card.h&gt;</CODE><BR>
20  <BR>
21  <CODE>const u8* CARD_GetRomHeader( void );</CODE><br>
22  <br>
23  </dd>
24</dl>
25<h2>Arguments</h2>
26<p>None.</p>
27
28<h2>Return Values</h2>
29<p>Returns the pointer to the buffer that stores the ROM header information of the inserted Game Card.<br>This pointer can be cast as the pointer to the <a href="../card_rom_header_type.html">CARDRomHeader</a> structure.<br>The contents of this buffer cannot be changed.</p>
30
31<H2>Description</H2>
32<p>Gets the ROM header information of the Game Card that is actually inserted in the DS Card slot.</p>
33<p>
34This function provides a way for programs that are not card-boot programs (such as NAND applications and programs on DS Download Play child consoles) to identify the content of the Game Card actually inserted in the slot.<br />If this function is called for a normal card-boot program, the information obtained is the same as that stored in the <CODE>HW_ROM_HEADER_BUF</CODE> address of the program's own ROM header.</p>
35<p style='color:Red;'>
36Note that, although this function will get the correct information from the Nintendo DS and Nintendo DSi consoles, it will <I>not</I> get the correct information from IS-NITRO-EMULATOR, IS-TWL-EMULATOR and other debug environments.</p>
37<H2>Revision History</H2>
38<P>
392008/12/05 Made specific note that correct information cannot be obtained from non-commercial models.<BR> 2006/08/25 Added mention that correct information cannot be obtained from non-commercial models.<BR> 2006/06/22 Added mention that return value can be cast to the <CODE>CARDRomHeader</CODE> structure pointer.<BR> 2004/10/08 Initial version.
40</P>
41<hr><p>CONFIDENTIAL</p></body>
42</html>
43