# CARD_GetRomHeader

## Syntax

  `#include <nitro/card.h>`
  `const u8* CARD_GetRomHeader( void );`

## Arguments

None.

## Return Values

Returns the pointer to the buffer that stores the ROM header information of the inserted Game Card.
This pointer can be cast as the pointer to the CARDRomHeader structure.
The contents of this buffer cannot be changed.

## Description

Gets the ROM header information of the Game Card that is actually inserted in the DS Card slot.

This 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.
If this function is called for a normal card-boot program, the information obtained is the same as that stored in the `HW_ROM_HEADER_BUF` address of the program's own ROM header.

Note that, although this function will get the correct information from the Nintendo DS and Nintendo DSi consoles, it will not get the correct information from IS-NITRO-EMULATOR, IS-TWL-EMULATOR and other debug environments.

## Revision History

2008/12/05 Made specific note that correct information cannot be obtained from non-commercial models.
2006/08/25 Added mention that correct information cannot be obtained from non-commercial models.
2006/06/22 Added mention that return value can be cast to the `CARDRomHeader` structure pointer.
2004/10/08 Initial version.

CONFIDENTIAL