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

Function KbOpenSection

User-Bridge/API/User-Bridge.cpp:1162–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160 }
1161
1162 BOOL WINAPI KbOpenSection(
1163 OUT WdkTypes::HANDLE* hSection,
1164 LPCWSTR Name,
1165 ACCESS_MASK DesiredAccess,
1166 ULONG SecObjFlags // OBJ_***
1167 ) {
1168 if (!hSection) return FALSE;
1169 KB_OPEN_SECTION_IN Input = {};
1170 KB_CREATE_OPEN_SECTION_OUT Output = {};
1171 Input.Name = reinterpret_cast<WdkTypes::LPCWSTR>(Name);
1172 Input.DesiredAccess = DesiredAccess;
1173 Input.SecObjFlags = SecObjFlags;
1174 BOOL Status = KbSendRequest(Ctls::KbOpenSection, &Input, sizeof(Input), &Output, sizeof(Output));
1175 *hSection = Output.hSection;
1176 return Status;
1177 }
1178
1179 BOOL WINAPI KbMapViewOfSection(
1180 WdkTypes::HANDLE hSection,

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected