# PxIOGetFileHeader

> Source: https://manual.pvxplus.com/pxio-library/library-functions/file-information-functions/pxiogetfileheader

## Description

Retrieves file header

## Format

**int** **PxIOGetFileHeader(PxIOFileHandle handle, void \*fileHeaderBuffer);**

***Where:***

|  |  |
| --- | --- |
| **handle** | The handle of an open file |
| **fileHeaderBuffer** | A pointer to the memory buffer, which will receive the file header |

## Return Value

If the function succeeds, a value of PXIO_SUCCESS_STATUS is returned; otherwise, an error value is returned. More information on the nature of the error can be found by calling **[PxIOGetError](https://manual.pvxplus.com/pxio-library/library-functions/error-functions/pxiogeterror)**.
