SOUND_DISPATCH_ROUTINE

typedef NTSTATUS SOUND_DISPATCH_ROUTINE(struct _LOCAL_DEVICE_INFO *, PIRP, PIO_STACK_LOCATION);

 

SOUND_DISPATCH_ROUTINE is the type definition of dispatch routines for IRP function codes.

Parameters

_LOCAL_DEVICE_INFO*

Type for a pointer to a LOCAL_DEVICE_INFO structure.

PIRP

Type for a pointer to an IRP structure.

PIO_STACK_LOCATION

Type for a pointer to an IO_STACK_LOCATION structure.

Return Value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise returns an NTSTATUS error code.

Comments

Drivers using soundlib.lib place the address of a function modeled on this type in the DispatchRoutine and DevCapsRoutine members of a SOUND_DEVICE_INIT structure.