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

Function KbReadPortByte

User-Bridge/API/User-Bridge.cpp:188–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 namespace RW
187 {
188 BOOL WINAPI KbReadPortByte(USHORT PortNumber, OUT PUCHAR Value)
189 {
190 if (!Value) return FALSE;
191 KB_READ_PORT_IN Input = {};
192 KB_READ_PORT_BYTE_OUT Output = {};
193 Input.PortNumber = PortNumber;
194 BOOLEAN Status = KbSendRequest(Ctls::KbReadPort, &Input, sizeof(Input), &Output, sizeof(Output));
195 *Value = Output.Value;
196 return Status;
197 }
198
199 BOOL WINAPI KbReadPortWord(USHORT PortNumber, OUT PUSHORT Value)
200 {

Callers 1

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected