| 219 | } |
| 220 | |
| 221 | BOOL WINAPI KbReadPortByteString(USHORT PortNumber, ULONG Count, OUT PUCHAR ByteString, ULONG ByteStringSizeInBytes) |
| 222 | { |
| 223 | if (!Count || !ByteString || !ByteStringSizeInBytes) return FALSE; |
| 224 | KB_READ_PORT_STRING_IN Input = {}; |
| 225 | auto Output = reinterpret_cast<PKB_READ_PORT_STRING_OUT>(ByteString); |
| 226 | Input.PortNumber = PortNumber; |
| 227 | return KbSendRequest(Ctls::KbReadPortString, &Input, sizeof(Input), Output, ByteStringSizeInBytes); |
| 228 | } |
| 229 | |
| 230 | BOOL WINAPI KbReadPortWordString(USHORT PortNumber, ULONG Count, OUT PUSHORT WordString, ULONG WordStringSizeInBytes) |
| 231 | { |
nothing calls this directly
no test coverage detected