| 186 | namespace RW |
| 187 | { |
| 188 | BOOL WINAPI KbReadPortByte(USHORT PortNumber, OUT PUCHAR Value) |
| 189 | { |
| 190 | if (!Value) return FALSE; |
| 191 | KB_READ_PORT_IN Input = {}; |
| 192 | KB_READ_PORT_BYTE_OUT Output = {}; |
| 193 | Input.PortNumber = PortNumber; |
| 194 | BOOLEAN Status = KbSendRequest(Ctls::KbReadPort, &Input, sizeof(Input), &Output, sizeof(Output)); |
| 195 | *Value = Output.Value; |
| 196 | return Status; |
| 197 | } |
| 198 | |
| 199 | BOOL WINAPI KbReadPortWord(USHORT PortNumber, OUT PUSHORT Value) |
| 200 | { |
no test coverage detected