Al_setbufferdonehandlerfunc – Measurement Computing ADLIB WIN User Manual

Page 132

Advertising
background image

Chapter 40 Buffer Handler Functions

27-12

27.11 AL_SetBufferDoneHandlerFunc

Prototype

C\C++

ERRNUM

AL_SetBufferDoneHandlerFunc(LHLD

lhld,

LPBUFFHAND

lpfnBufferCbHandlerProc);


LHLD lhld

handle

of

the

LDSD

LPBUFFHAND lpfnBufferCbHandlerProc

Address of the callback function


The AL_SetBufferDoneHandlerFunc function sets the buffer done handler CALLBACK address
identifier in the LDSD when the ADLIB function AL_SetBufferDoneHandler is set to AL_CALLBACK.

The Prototype for the CALLBACK is:
long __stdcall BufferCbHandlerProc(long lBufferNum, LPBUFFSTRUCT lpbuff, DWORD dwSeqCount,

LPVOID

lpvoid)

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpfnBufferCbHandlerProc

Specifies the address of the callback function.


Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.

Related Functions:
AL_SetBufferDoneHandler

Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0, DAC1

Advertising