ACM_IOControl

This function is the I/O controls routine for an ACM device driver.

Syntax

BOOL ACM_IOControl( DWORD dwOpenData, DWORD dwCode,
PBYTE pBufIn, DWORD dwLenIn, PBYTE pBufOut, DWORD dwLenOut,
PDWORD pdwActualOut );

Parameters

dwOpenData
Specifies a value returned from a call to the ACM_Open function.
dwCode
Specifies an I/O control code for this function to perform. This function supports only one I/O control value, IOCTL_ACM_MESSAGE.
pBufIn
Pointer to the input parameter structure ( ACMDRV_MESSAGE_PARAMS ).
dwLenIn
Specifies the size, in bytes, of ACMDRV_MESSAGE_PARAMS.
pBufOut
Pointer to the return value ( DWORD ).
dwLenOut
Specifies the size of the return value variable DWORD.
pdwActualOut
Is not used, must be zero.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

The ACM Driver Wrapper library (Acmdwrap.lib) calls the DriverProc with the message specified in the ACMDRV_MESSAGE_PARAMS structure.