diff --git a/client/Windows/wf_interface.c b/client/Windows/wf_interface.c index 09c465e88..1f22fb34e 100644 --- a/client/Windows/wf_interface.c +++ b/client/Windows/wf_interface.c @@ -829,6 +829,21 @@ int freerdp_client_stop(wfInfo* wfi) return 0; } +HANDLE freerdp_client_get_thread(wfInfo* cfi) +{ + return cfi->thread; +} + +freerdp* freerdp_client_get_instance(wfInfo* cfi) +{ + return cfi->instance; +} + +rdpClient* freerdp_client_get_interface(wfInfo* cfi) +{ + return cfi->client; +} + int freerdp_client_focus_in(wfInfo* wfi) { PostThreadMessage(wfi->mainThreadId, WM_SETFOCUS, 0, 1); diff --git a/client/Windows/wf_interface.h b/client/Windows/wf_interface.h index 16891db82..fc5031d59 100644 --- a/client/Windows/wf_interface.h +++ b/client/Windows/wf_interface.h @@ -129,6 +129,10 @@ FREERDP_API int freerdp_client_global_uninit(); FREERDP_API int freerdp_client_start(wfInfo* cfi); FREERDP_API int freerdp_client_stop(wfInfo* cfi); +FREERDP_API HANDLE freerdp_client_get_thread(wfInfo* cfi); +FREERDP_API freerdp* freerdp_client_get_instance(wfInfo* cfi); +FREERDP_API rdpClient* freerdp_client_get_interface(wfInfo* cfi); + FREERDP_API int freerdp_client_focus_in(wfInfo* cfi); FREERDP_API int freerdp_client_focus_out(wfInfo* cfi);