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

Function KbWritePortByteString

User-Bridge/API/User-Bridge.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected