NTSTATUS
SoundSetShareAccess(
IN OUT PLOCAL_DEVICE_INFO pLDI,
IN PIO_STACK_LOCATION IrpStack
);
The SoundSetShareAccess function sets a specified device access by calling IoSetShareAccess.
Returns STATUS_SUCCESS if the requested access is granted. Otherwise returns STATUS_ACCESS_DENIED or STATUS_DEVICE_BUSY.
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.