# ReadFromPhysicalMemory

int ReadFromPhysicalMemory (unsigned int physicalAddress, void *destinationBuffer, unsigned int numberOfBytes);

## Purpose

Copies the contents of a region of physical memory into the specified buffer.

ReadFromPhysicalMemory does not check whether the memory actually exists. If the memory does not exist, ReadFromPhysicalMemory returns the success value but does not read data.

| Note ReadFromPhysicalMemory requires the LabWindows/CVI low-level support driver. LabWindows/CVI loads the driver at startup if it is on disk. You can check whether LabWindows/CVI loaded the driver at startup by calling CVILowLevelSupportDriverLoaded.

## Parameters

Input
Name | Type | Description
physicalAddress | unsigned integer | Physical address to read from. No restrictions exist on the address, which can be below or above 1 MB.
destinationBuffer | void pointer | Buffer into which to copy the physical memory.
numberOfBytes | unsigned integer | Number of bytes to copy from physical memory.

## Return Value

Name | Type | Description
status | integer | Indicates whether the function succeeded.
Code | Description
1 | Success.
0 | Operating system reported failure, or low-level support driver not loaded.