MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / KbWritePortDwordString

Function KbWritePortDwordString

User-Bridge/API/User-Bridge.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected