Send message to citrix client driver - c#

I download SDK from here SDK. The vdovern custom virtual channel Client/Server project is successfully run. Now i want to communication between c# application and vdovern.dll(citrix client driver).
[SendMessage] API use for a send message from c# app to citrix client driver. but sendmessage API need HWND.
How to get window handle(citrix client driver) to send message from c# application to vdovern.dll(citrix client driver)?
Is there any other way to send message to citrix client driver?
Thanks,

Citrix has provided virtual channel sdks, user can download the sdk from citrix website. It comes with some sample code and good documentation. SDKs has 2 components a server side executable and a client driver dll. when this exeutable is launched it loads client side driver in its context and creates a virtual cahnnel. User can pass data from server to client using these 2 components. Steps to build these components are given below:
http://ajdevtech.blogspot.com/2019/01/working-with-citrix-virtual-channel-sdk.html

Related

Want to connect to Azure Windows Virtual Desktop in browser using c#?

I have connected to Remote Desktop/Virtual Network using Myrtille C# (just like Chrome Remote Desktop). I want to connect Azure Windows Virtual Desktop using C#. The concept is to connect to Azure Windows Virtual Desktop in the browser using C#. On the browser add required fields like IP address, Port, User Name, and Password, and after the button click, wants to connect to Windows Virtual Desktop. Is there any code available to did this?
I initially went through the official documentation and looked online for C# examples without any success. I then looked further into the differences between Azure Virtual Machines and Azure Windows Virtual Desktop.
The connection process with Azure Windows Virtual Desktop requires more in the way of authentication than providing a simple User Name and Password as you would with a virtual machine. This is the client connection sequence:
Using supported Windows Virtual Desktop client user subscribes to the Windows Virtual Desktop Workspace
Azure Active Directory authenticates the user and returns the token used to enumerate resources available to a user
Client passes token to the Windows Virtual Desktop feed subscription service
Windows Virtual Desktop feed subscription service validates the token
Windows Virtual Desktop feed subscription service passes the list of
available desktops and RemoteApps back to the client in the form of
digitally signed connection configuration
Client stores the connection configuration for each available
resource in a set of .rdp files
When a user selects the resource to connect, the client uses the
associated .rdp file and establishes the secure TLS 1.2 connection
to the closest Windows Virtual Desktop gateway instance and passes
the connection information
Windows Virtual Desktop gateway validates the request and asks the
Windows Virtual Desktop broker to orchestrate the connection
Windows Virtual Desktop broker identifies the session host and uses
the previously established persistent communication channel to
initialize the connection
Remote Desktop stack initiates the TLS 1.2 connection to the same
Windows Virtual Desktop gateway instance as used by the client
After both client and session host connected to the gateway, the
gateway starts relaying the raw data between both endpoints, this
establishes the base reverse connect transport for the RDP
After the base transport is set, the client starts the RDP
handshake
There's additional reading you can do if you'd like to learn more about RDP for Windows Virtual Desktop, but it doesn't look like Myrtille will work for what you are trying to accomplish.
https://techcommunity.microsoft.com/t5/windows-virtual-desktop/announcing-public-preview-of-rdp-shortpath-transport-for-windows/m-p/1889372

how to send event to chrome extension from C# native host

I had created a chrome extension and a c# host application, the chrome app is sending events to the c# host application. But how we can receive the events in chrome from the host app.
I found a solution for this; a C# application can control the Chrome add-on using the native messaging and the pipe channel.
The pipe stream channel is connected between two C# apps and one end of the pipe is connected to the native messaging which is a channel for the browser and the C# app.
But my application is not completely ready. I'm working on it to get a reliable channel communication between these two channels.

Web Socket between C# Console Application and a browser

Is it possible (and simple) for C# console to open a web socket with a browser, without using Node.js? Meaning, an active and opened C# console application, always running on the server, which can send and receive messages to and from the browser at real time.
I tried to use a browser loading the socket.io.js JS file (https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js), and creating a C# console application using TcpListener class. And there seems to be a successful connection. But I can't send messages between the server and the client.
Yes, I've done it several times.
C# console / Windows service: Use SignalR library. Should be able to get it via NuGet.
Web application: Use jquery.signalr-x.x.x.js library.
SignalR should primarily establish a WebSocket connection between the SignalR hub in our .NET app, and the jquery.signalr client library in your web application.

Can I send messages from a client-side application to a server-side application using RDP virtual channels?

One of our integration partners is migrating their product to Terminal Services. While their product will exist within a Terminal Services session they will not allow third-parties to run their applications within the same session.
Our integration requires that our application send messages to the partner product using built-in APIs. These APIs have not been updated to allow communication across the RDP session. We want to be able to send these messages via a proxy in the form of a virtual channel. These messages would be received by the RDP session, forwarded on to the partner application, and any responses returned to our application via the channel.
However, all articles I've found on the web surround the process of sending messages from the server to the client. Is the reverse possible?

Call Windows Service from Browser

I want to send data to a driver software via browser application with in same machine. If this driver can keep on listening to external connection via socket as a windows service, can I write a web application to send data to this driver by using php, applet or .net. Driver is written in C#. Is this possible and if so can someone show me a path/suggestions or any resource related to this?
I do not know a whole lot about drivers...
But, if you can self-host a WCF service in the C# driver, than you can do IPC (inter-process communication) on the same machine. The WCF could expose multiple endpoints ie.) http, namedpipe, or tcp and the .NET web application can subscribe to the service and send data to the C# driver.
Also, if you use a http or tcp endpoint, i believe that the web application would be able to connect to the C# driver from another machine.
WCF Reference: http://msdn.microsoft.com/en-us/library/ms731082.aspx
you could use web sockets WebSocket, however your driver would have to handle the handshake.

Categories

Resources