> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenFromFile

> Analyse un en-tête d'archive à partir d'un pointeur de fichier et alloue de la mémoire pour l'en-tête.

Analyse un en-tête d'archive à partir d'un pointeur de fichier et alloue de la mémoire pour l'en-tête.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
bool OpenFromFile(  
         const wchar_t* ArchiveFilePath  
)  
```

<a id="parametersSection" />

### Paramètres

*ArchiveFilePath*   \
Type : wchar\_t\*

Chemin d'accès au fichier d'archive.

<a id="retvalSection" />

### Valeur de retour

Type : bool

Retourne true si le fichier d'archive a été ouvert avec succès ; sinon, retourne false.

<a id="remarksSection" />

## Remarques

`XBTCArchiveReader_OpenFromFile` analyse un en-tête d'archive à partir d'un pointeur de fichier et alloue de la mémoire pour l'en-tête.\
Cette méthode est utilisée par `XBTCArchiveReader_IsValid`.\
Pour plus d'informations sur `XBTCArchiveReader_IsValid`, consultez [XBTCArchiveReader\_IsValid](/fr/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_isvalid).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** XBTC.h

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

<a id="seealsoSection" />

## Voir aussi

[XBTCArchiveReader](/fr/reference/graphics/xbtc/interfaces/XBTCArchiveReader/xbtcarchivereader)
[XBTC](/fr/reference/graphics/xbtc/xbtc_members)


## Related topics

- [IDStorageFactoryX::OpenFile](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_openfile.md)
- [OpenExistingHeapFromFileMapping](/reference/graphics/d3d12/interfaces/id3d12device3/methods/id3d12device3_openexistingheapfromfilemapping_public.md)
