| 237 | } |
| 238 | |
| 239 | BOOL WINAPI KbReadPortDwordString(USHORT PortNumber, ULONG Count, OUT PULONG DwordString, ULONG DwordStringSizeInBytes) |
| 240 | { |
| 241 | if (!Count || !DwordString || !DwordStringSizeInBytes) return FALSE; |
| 242 | KB_READ_PORT_STRING_IN Input = {}; |
| 243 | auto Output = reinterpret_cast<PKB_READ_PORT_STRING_OUT>(DwordString); |
| 244 | Input.PortNumber = PortNumber; |
| 245 | return KbSendRequest(Ctls::KbReadPortString, &Input, sizeof(Input), Output, DwordStringSizeInBytes); |
| 246 | } |
| 247 | |
| 248 | BOOL WINAPI KbWritePortByte(USHORT PortNumber, UCHAR Value) |
| 249 | { |
nothing calls this directly
no test coverage detected