| 228 | } |
| 229 | |
| 230 | BOOL WINAPI KbReadPortWordString(USHORT PortNumber, ULONG Count, OUT PUSHORT WordString, ULONG WordStringSizeInBytes) |
| 231 | { |
| 232 | if (!Count || !WordString || !WordStringSizeInBytes) return FALSE; |
| 233 | KB_READ_PORT_STRING_IN Input = {}; |
| 234 | auto Output = reinterpret_cast<PKB_READ_PORT_STRING_OUT>(WordString); |
| 235 | Input.PortNumber = PortNumber; |
| 236 | return KbSendRequest(Ctls::KbReadPortString, &Input, sizeof(Input), Output, WordStringSizeInBytes); |
| 237 | } |
| 238 | |
| 239 | BOOL WINAPI KbReadPortDwordString(USHORT PortNumber, ULONG Count, OUT PULONG DwordString, ULONG DwordStringSizeInBytes) |
| 240 | { |
nothing calls this directly
no test coverage detected