Al_getbuffptr – Measurement Computing ADLIB WIN User Manual
Page 123

Chapter 40 Buffer Handler Functions
27-3
27.3 AL_GetBuffPtr
Prototype
C\C++
LPBUFFSTRUCT
AL_GetBuffPtr(LHLD
lhld, long lBuffNum);
Visual Basic for Windows
Not
supported
LHLD lhld
handle of the LDSD
long lBuffNum
specifies the buffer
The AL_GetBuffPtr function retrieves a buffer pointer from the LDSD. See section
6.3 THE BUFFER
STRUCTURE
for additional details.
Parameter
Description
lhld
Identifies the instance of the logical device subsystem.
lBuffNum
Specifies the buffer ID number from which a pointer is returned.
Returns:
On success LPBUFFSTRUCT points to the desired buffer, otherwise LPBUFFSTRUCT is set to NULL
indicating the buffer is not available. The LPBUFFSTRUCT is a structure defined in adlib.h which
contains a pointer to the buffer and current status information of the buffer. See the Memory Buffer
Allocation chapter for a complete description of buffer handling concepts and the LPBUFFSTRUCT
structure details.
Related Functions:
AL_ClearBufferDoneFlag
AL_GetBufferStatus
Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0, DAC1