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

Function KbSetThreadContext

User-Bridge/API/User-Bridge.cpp:1003–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001 }
1002
1003 BOOL WINAPI KbSetThreadContext(ULONG ThreadId, IN PCONTEXT Context, ULONG ContextSize, OPTIONAL WdkTypes::KPROCESSOR_MODE ProcessorMode)
1004 {
1005 KB_GET_SET_THREAD_CONTEXT_IN Input = {};
1006 Input.ThreadId = ThreadId;
1007 Input.ContextSize = ContextSize;
1008 Input.ProcessorMode = ProcessorMode;
1009 Input.Context = reinterpret_cast<WdkTypes::PVOID>(Context);
1010 return KbSendRequest(Ctls::KbSetThreadContext, &Input, sizeof(Input));
1011 }
1012 }
1013
1014 namespace MemoryManagement

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected