| 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, |
nothing calls this directly
no test coverage detected