More token support

This commit is contained in:
momo5502
2024-12-22 10:28:44 +01:00
parent 2695fa0cd8
commit 48277cac3a

View File

@@ -2053,6 +2053,24 @@ namespace
return STATUS_SUCCESS;
}
if (token_information_class == TokenBnoIsolation)
{
constexpr auto required_size = sizeof(TOKEN_BNO_ISOLATION_INFORMATION);
return_length.write(required_size);
if (required_size > token_information_length)
{
return STATUS_BUFFER_TOO_SMALL;
}
c.emu.write_memory(token_information, TOKEN_BNO_ISOLATION_INFORMATION{
.IsolationPrefix = nullptr,
.IsolationEnabled = 0,
});
return STATUS_SUCCESS;
}
printf("Unsupported token info class: %lX\n", token_information_class);
c.emu.stop();
return STATUS_NOT_SUPPORTED;