Compartilhar via


Required Entry-point Function (Windows CE 5.0)

Send Feedback

An ACM driver must have an entry-point function named DriverProc. The audio compression manager calls this function to control the driver and retrieve information from the driver.

The following code example defines the DriverProc function.

LRESULT FNEXPORT DriverProc ( DWORD   dwID,
                              HDRVR   hdrvr,
                              UINT    uMsg,
                              LPARAM  lParam1,
                              LPARAM  lParam2 )

For most messages, the dwID parameter is a nonzero value that identifies a driver instance. It is returned in response to a DRV_OPEN message.

The hdrvr parameter is the handle to a driver.

The uMsg parameter is the message being passed.

The two LPARAM parameters contain message-specific data.

The following topics describe the messages that an ACM driver is required to support:

See Also

Pluggable Codec Requirements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.