how to use StorUFS to do development?

松源 张 40 Reputation points
2024-08-15T08:28:19.3166667+00:00

hi friend,

My computer is using UFS as storage device, I can use IOCTL_SCSI_PASS_THROUGH_DIRECT to send scsi command to UFS, but this interface was not support to send UFS query command.

After I do some research I find StorUFS has QUERY_REQ (0x16) can send ufs query command, but I don't know how to use windows API to send ufs query command.

Would you please help me?
```My reference link is here:

[https://learn.microsoft.com/en-us/windows-hardware/drivers/storage/storufs-feature-support#list-of-scsi-commands-that-storufs-supports](https://learn.microsoft.com/en-us/windows-hardware/drivers/storage/storufs-feature-support#list-of-scsi-commands-that-storufs-supports)

thanks

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
169 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.