Milestone 5: deliver embedded RDP sessions and lifecycle hardening

This commit is contained in:
Keith Smith
2026-03-03 18:59:26 -07:00
parent 230a401386
commit 36006bd4aa
2941 changed files with 724359 additions and 77 deletions

View File

@@ -0,0 +1,30 @@
#include <iostream>
#include <fstream>
#include <memory>
#include <winpr/config.h>
#include <winpr/winpr.h>
#include <sdl_webview.hpp>
int TestSDLWebview(WINPR_ATTR_UNUSED int argc, WINPR_ATTR_UNUSED char* argv[])
{
#if 0
RDP_CLIENT_ENTRY_POINTS entry = {};
entry.Version = RDP_CLIENT_INTERFACE_VERSION;
entry.Size = sizeof(RDP_CLIENT_ENTRY_POINTS_V1);
entry.ContextSize = sizeof(rdpContext);
std::shared_ptr<rdpContext> context(freerdp_client_context_new(&entry),
[](rdpContext* ptr) { freerdp_client_context_free(ptr); });
char* token = nullptr;
if (!sdl_webview_get_access_token(context->instance, ACCESS_TOKEN_TYPE_AAD, &token, 2, "scope",
"foobar"))
{
std::cerr << "test failed!" << std::endl;
return -1;
}
#endif
return 0;
}