| 297 | } |
| 298 | |
| 299 | BOOL WINAPI KbWritePortDwordString(USHORT PortNumber, ULONG Count, IN PULONG DwordString, ULONG DwordStringSizeInBytes) |
| 300 | { |
| 301 | if (!DwordString || DwordStringSizeInBytes < Count * sizeof(*DwordString)) return FALSE; |
| 302 | KB_WRITE_PORT_STRING_IN Input = {}; |
| 303 | Input.PortNumber = PortNumber; |
| 304 | Input.Granularity = sizeof(*DwordString); |
| 305 | Input.Count = Count; |
| 306 | Input.BufferSize = DwordStringSizeInBytes; |
| 307 | Input.Buffer = reinterpret_cast<WdkTypes::PVOID>(DwordString); |
| 308 | return KbSendRequest(Ctls::KbWritePortString, &Input, sizeof(Input)); |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | namespace Iopl |
nothing calls this directly
no test coverage detected