| 273 | } |
| 274 | |
| 275 | BOOL WINAPI KbWritePortByteString(USHORT PortNumber, ULONG Count, IN PUCHAR ByteString, ULONG ByteStringSizeInBytes) |
| 276 | { |
| 277 | if (!ByteString || ByteStringSizeInBytes < Count * sizeof(*ByteString)) return FALSE; |
| 278 | KB_WRITE_PORT_STRING_IN Input = {}; |
| 279 | Input.PortNumber = PortNumber; |
| 280 | Input.Granularity = sizeof(*ByteString); |
| 281 | Input.Count = Count; |
| 282 | Input.BufferSize = ByteStringSizeInBytes; |
| 283 | Input.Buffer = reinterpret_cast<WdkTypes::PVOID>(ByteString); |
| 284 | return KbSendRequest(Ctls::KbWritePortString, &Input, sizeof(Input)); |
| 285 | } |
| 286 | |
| 287 | BOOL WINAPI KbWritePortWordString(USHORT PortNumber, ULONG Count, IN PUSHORT WordString, ULONG WordStringSizeInBytes) |
| 288 | { |
nothing calls this directly
no test coverage detected