1
0

Updated README

Fixed printing of FF
This commit is contained in:
Benjamin Höglinger-Stelzer 2023-06-25 16:56:47 +02:00
parent 1ef60bc4c5
commit 3aa7520fd5
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ Heavily work in progress 🔥
## Details ## Details
The ACU sends a couple of `IOCTL_SCSI_MINIPORT` IOCTLs with custom payloads on controller selection; The ACU sends a couple of `IOCTL_SCSI_MINIPORT` IOCTLs with custom payloads on controller selection; this is received and handled by the `HpSAMD.sys` driver. So far cross-checking the payload format with the well-known Linux sources hasn't yielded any success; I assume when `IOCTL_SCSI_MINIPORT` is used, the payload isn't what 1:1 gets sent to the controller, unlike `IOCTL_SCSI_PASS_THROUGH` which isn't what the ACU uses. Next step might be trying to port over the Linux CCISS example requests to the Windows SCSI API by using `IOCTL_SCSI_PASS_THROUGH` to try if the controller then responds with the same packet structure as it would under Linux.
## 3rd party sources ## 3rd party sources

View File

@ -119,7 +119,7 @@ void MiniportExample(HANDLE handle)
std::wostringstream ss; std::wostringstream ss;
ss << std::hex << std::uppercase << std::setfill(L'0'); ss << std::hex << std::uppercase << std::setfill(L'0');
std::for_each(buffer.cbegin(), buffer.cend(), [&](int c) { ss << std::setw(2) << c << L" "; }); std::for_each(buffer.cbegin(), buffer.cend(), [&](int c) { ss << std::setw(2) << (unsigned char)c << L" "; });
const std::wstring hexString = ss.str(); const std::wstring hexString = ss.str();