## MMPM/2 Device Driver Reference

[prev][next][parent][TOC]

### DDCMD_REG_STREAM

Select an item:

    Syntax
    Returns
    Remarks
    Example Code
    Glossary

This message registers a stream instance with a device driver for the first time.

pParmIn (PDDCMDREGISTER) A pointer to a DDCMDREGISTER data structure.

Values for ulStreamOperation include:

STREAM_OPERATION_CONSUME
STREAM_OPERATION_PRODUCE

Values for ulAddressType include:

ADDRESS_TYPE_VIRTUAL
ADDRESS_TYPE_PHYSICAL
ADDRESS_TYPE_LINEAR

rc (ULONG) Error code indicating success or the type of failure:

NO_ERROR Success.

ERROR_INVALID_FUNCTION Illegal function requested.

ERROR_INVALID_STREAM Invalid stream handle.

ERROR_HNDLR_REGISTERED Stream had already been registered with the Sync/ Stream Manager.

ERROR_INVALID_SPCBKEY Invalid SPCBKEY.

ERROR_INITIALIZATION An error occurred during device initialization.

ERROR_STREAM_CREATION An error occurred during the creation of this stream instance.

FAILURE Device-driver-specific error return code.