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

Function GetEFlagsPtr

Kernel-Bridge/API/IO.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 PULONG GetEFlagsPtr(PVOID KTrapFramePtr) {
49 return reinterpret_cast<PULONG>(
50 reinterpret_cast<SIZE_T>(KTrapFramePtr) + EFlagsOffsetInKTrapFrame32
51 );
52 }
53
54 void RaiseIopl() {
55 *GetEFlagsPtr(GetTrapFrame()) |= IoplAccessMask;

Callers 2

RaiseIoplFunction · 0.85
ResetIoplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected