National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 8 Utility Library
© National Instruments Corporation 8-57 LabWindows/CVI Standard Libraries
ReadFromPhysicalMemory
int
status = ReadFromPhysicalMemory
(unsigned int
physicalAddress
,
void *
destinationBuffer
,
unsigned int
numberOfBytes
);
Note:
This function is available only on the Windows versions of LabWindows/CVI.
Purpose
Copies the contents of a region of physical memory into
destinationBuffer
. The function does
not check whether the memory actually exists. If the memory does not exist, the success value is
returned but no data is read.
Note:
For you to be able to use this function under Windows 95 or NT, the LabWindows/CVI
low-level support driver must be loaded.
Parameters
Input
physicalAddress
unsigned integer The physical address to be read
from. There are no restrictions
on the address; it can be below
or above 1 MB.
destinationBuffer
void pointer The buffer into which the
physical memory will be copied.
numberOfBytes
unsigned integer The number of bytes to copy
from physical memory.
Return Value
status
integer Indicates whether the function
succeeded.
Return Codes
1
Success.
0
Failure reported by the operating system, or low-level
support driver not loaded.