Questions tagged [cassia]

Cassia is a .NET library for accessing the native Windows Terminal Services API (now the Remote Desktop Services API). It can be used from C#, Visual Basic.NET, or any other .NET language.

Cassia is a library for accessing the native Windows Terminal Services API (now the Remote Desktop Services API). It can be used from , Visual Basic.NET, or any other .NET language.

11 questions
2
votes
1 answer

Calling WTSEnumerateSessions from a Local System service

I am using Cassia to connect my C# code to our network of terminal servers. If I run the program as an Administrator user it works fine. However when I load the same code up as a service with the Local System user and Cassia makes a…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
1
vote
4 answers

C# Add server users to List<>

I have created an application that checks how many users are logged into a machine and performs a count. I have used Cassia to get the usernames, however I would like to put those usernames in a list and send to my database. I am having a problem…
coderblogger
  • 84
  • 11
1
vote
2 answers

How to use cassia to Create Remote Session and send input?

I know I can use Remote Desktop ActiveX control, but I am trying to implement solution browser based solution just like browserstack.com etc, they have implemented same by using Flash which connects to their server which in turn might be rdp…
Akash Kava
  • 39,066
  • 20
  • 121
  • 167
0
votes
0 answers

Retrieve Application Name given a Session ID

I´ve been working on some TS and it is now necessary to retrieve the application name that is being used by the remote user on my TS. I tried to use Cassia package as well as directly accessing the WTSApi32.dll. Problem is that at the time (20 Years…
0
votes
0 answers

C#, Cassia terminal server query and Impersonation

I have a function using the Cassia library in my forms app that returns all the users logged in via rdp to session hosts and some details about their session (and then adds it to a datagridview). It works fine, as long as you are in the…
I.M.
  • 45
  • 7
0
votes
1 answer

Cassia: Win32Exception no more data available

I'm using Cassia to get the sessions of two servers. - Windows 2003 R2 Terminal Server - Windows 2008 R2 Server The second one, which is not a terminal server works fine. However the first one is getting some issues. The error message…
triplus
  • 91
  • 5
  • 17
0
votes
1 answer

How to retrieve Sessionname from cassia.dll?

I am using cassia library instead of quser for fetching logged on user information from windows (I refer this : https://stackoverflow.com/a/809906/5182321) ITerminalServicesManager manager = new TerminalServicesManager(); using (ITerminalServer…
S M
  • 3,133
  • 5
  • 30
  • 59
0
votes
1 answer

C# Dynamic Set DataRow

I used cassia.dll for manage terminal servers and write simple program. I'll get List Property but not know how make dynamic add in Datarow. DataTable use for Filtring. private void btn_GetTSServers_Click(object sender, EventArgs e) { …
0
votes
2 answers

Set Terminal Server user default printer at login

I manage a terminal server in our production environment that serves many different machines that connect under the same generic ID. Using the Cassia library, I am easily able to capture everything I need to know about the remote connections…
Ki4qwq
  • 1
  • 1
0
votes
1 answer

Telerik RadGridView Cassia Server Name and Session ID

I am using telerik:RadGridView along with telerik:RadContextMenu.ContextMenu to generate a right click menu inside my application. I need to be able to grab the servername and session id from the selected row in order to pass to the Disconnect and…
ondrovic
  • 1,105
  • 2
  • 23
  • 40
0
votes
1 answer

Cassia method works fine in console app but error in asp.net app

I am running this code. server.Open(); //Console.WriteLine("----------------------------------------------------"); //Console.WriteLine("Active users on {0}", machineName); foreach (ITerminalServicesSession session in…
user1451111
  • 1,735
  • 3
  • 18
  • 30