SoundSetShareAccess

NTSTATUS
SoundSetShareAccess(
IN OUT PLOCAL_DEVICE_INFO
pLDI,
IN PIO_STACK_LOCATION
IrpStack
);

The SoundSetShareAccess function sets a specified device access by calling IoSetShareAccess.

Parameters

pLDI

Pointer to a LOCAL_DEVICE_INFO structure.

IrpStack

Pointer to an IO_STACK_LOCATION structure that contains the desired access.

Return Value

Returns STATUS_SUCCESS if the requested access is granted. Otherwise returns STATUS_ACCESS_DENIED or STATUS_DEVICE_BUSY.

Comments

This function can only be called when processing an IRP_MJ_CREATE message, because it references message-specific contents of IrpStack. Drivers using the dispatch routines supplied by soundlib.lib do not need to call this function.