lpcware

How to make MSC drive readonly?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by Muis on Wed Feb 12 02:58:01 MST 2014
Using the previous generation of USB drivers it was very simple to make a Mass Storage drive appear read-only to Windows, by setting a flag in result to some SCSI command, but I can't figure out how to do the same using LPCOpen (and the USB ROM drivers). The only API functions that are available are:

MSC_Read
MSC_Write
MSC_Verify
MSC_GetWriteBuf

Which abstract away all SCSI commands, but the endresult is that I can't figure out a way to make the drive read-only.

Is there a solution for this? For example, by overriding the endpoint-handler?

Outcomes