473,320 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

terminal services virtual channel client part in c#

me
I need to write the client part of a virtual channel for terminal
services in c#. I have already done the server part and it works just
fine in c#. My problem is exporting the function is requires me to
export on the dll, I have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,
Nov 17 '05 #1
9 5700

"Rob Leitman [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Take a look at "Implementing Callback Functions":
http://www.msdn.microsoft.com/librar...kFunctions.asp

--


Rob,

I don't think this is of any help, the DLL has to "export" function and must
be loadable using LoadLibrary, something which isn't possible using C#.

Willy.

Nov 17 '05 #2

"me" <"c[r]asolorz"@hot[mail]dotcom> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
I need to write the client part of a virtual channel for terminal services
in c#. I have already done the server part and it works just fine in c#. My
problem is exporting the function is requires me to export on the dll, I
have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,


C# can't be used here, C++ only (all or not in a mixed managed/native DLL)
can create exports and the necessary entry points to load the DLL.
Willy.
Nov 17 '05 #3
me
Willy Denoyette [MVP] wrote:
"me" <"c[r]asolorz"@hot[mail]dotcom> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
I need to write the client part of a virtual channel for terminal services
in c#. I have already done the server part and it works just fine in c#. My
problem is exporting the function is requires me to export on the dll, I
have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,

C# can't be used here, C++ only (all or not in a mixed managed/native DLL)
can create exports and the necessary entry points to load the DLL.
Willy.

Thanks for all the help, turns out that using the ms rdp ocx I don't
need to write that DLL in order to send data from the server to the
clinet, I am now strugling sending the data from the client to the server.
Nov 17 '05 #4
TP
Take a look at these articles, they should help you get started with
exporting a VirtualChannelEntry function from your C# assembly:

http://www.c-sharpcorner.com/Code/20...sUnmanaged.asp

http://www.codeproject.com/dotnet/em..._unmanaged.asp

For specific advice on how to get this working you will probably get
a better answer over in:

microsoft.public.dotnet.languages.csharp

Thanks.

-TP

me" <"c[r]asolorz wrote:
I need to write the client part of a virtual channel for terminal
services in c#. I have already done the server part and it works just
fine in c#. My problem is exporting the function is requires me to
export on the dll, I have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,

Nov 17 '05 #5

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...

"Rob Leitman [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Take a look at "Implementing Callback Functions":
http://www.msdn.microsoft.com/librar...kFunctions.asp

--


Rob,

I don't think this is of any help, the DLL has to "export" function and
must be loadable using LoadLibrary, something which isn't possible using
C#.


The DLL doesn't need to export the function, since you pass the function
pointer to VirtualChannelInit. All you need is a way to get a function
pointer in C#.

The article I pointed to explained how to do exactly that.

Rob

--
This posting is provided "AS IS" with no warranties, and confers no rights.
See the TS FAQ at
http://www.microsoft.com/windowsserv...minal_faq.mspx
Nov 17 '05 #6
I wont suggest this, this is a hack that:
- isn't guaranteed to work in later versions of the CLR,
- turns into a maintenance mightmare.

Willy.

"TP" <tp***************@mailandnews.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Take a look at these articles, they should help you get started with
exporting a VirtualChannelEntry function from your C# assembly:

http://www.c-sharpcorner.com/Code/20...sUnmanaged.asp

http://www.codeproject.com/dotnet/em..._unmanaged.asp

For specific advice on how to get this working you will probably get a
better answer over in:

microsoft.public.dotnet.languages.csharp

Thanks.

-TP

me" <"c[r]asolorz wrote:
I need to write the client part of a virtual channel for terminal
services in c#. I have already done the server part and it works just
fine in c#. My problem is exporting the function is requires me to
export on the dll, I have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,

Nov 17 '05 #7

"Rob Leitman [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:uk**************@TK2MSFTNGP12.phx.gbl...

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...

"Rob Leitman [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Take a look at "Implementing Callback Functions":
http://www.msdn.microsoft.com/librar...kFunctions.asp

--


Rob,

I don't think this is of any help, the DLL has to "export" function and
must be loadable using LoadLibrary, something which isn't possible using
C#.


The DLL doesn't need to export the function, since you pass the function
pointer to VirtualChannelInit. All you need is a way to get a function
pointer in C#.

The article I pointed to explained how to do exactly that.

Rob

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
See the TS FAQ at
http://www.microsoft.com/windowsserv...minal_faq.mspx


Rob,

OP doesn't need to implement callback functions in managed code and pass the
pointer to unmanaged DLL code, he needs to implement a Virtual Channel
Client DLL in C# and this one has to:
1. Be dynamically loadable (LoadLibrary) and,
2. export the VirtualChannelEntry entrypoint.
Both of these are not possible in C#

Willy.


Nov 17 '05 #8
Forgot to mention that this isn't a solution as the DLL must be loadable by
Terminal Services as a regular native DLL which isn't possible using managed
assembly. Pure managed assemblies don't export/implement DllMain so can't be
loaded/mapped (using LoadLibrary(ex)) .

Willy.

"TP" <tp***************@mailandnews.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Take a look at these articles, they should help you get started with
exporting a VirtualChannelEntry function from your C# assembly:

http://www.c-sharpcorner.com/Code/20...sUnmanaged.asp

http://www.codeproject.com/dotnet/em..._unmanaged.asp

For specific advice on how to get this working you will probably get a
better answer over in:

microsoft.public.dotnet.languages.csharp

Thanks.

-TP

me" <"c[r]asolorz wrote:
I need to write the client part of a virtual channel for terminal
services in c#. I have already done the server part and it works just
fine in c#. My problem is exporting the function is requires me to
export on the dll, I have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,

Nov 17 '05 #9
Como faço para que meus clientes que usam o SO em portugues, acessem os
recusros do servidor que esta em ingles ???

"Rob Leitman [MSFT]" wrote:
Take a look at "Implementing Callback Functions":
http://www.msdn.microsoft.com/librar...kFunctions.asp

--
This posting is provided "AS IS" with no warranties, and confers no rights.
See the TS FAQ at
http://www.microsoft.com/windowsserv...minal_faq.mspx
"me" <"c[r]asolorz"@hot[mail]dotcom> wrote in message
news:OT**************@TK2MSFTNGP09.phx.gbl...
I need to write the client part of a virtual channel for terminal services
in c#. I have already done the server part and it works just fine in c#. My
problem is exporting the function is requires me to export on the dll, I
have no idea how to do that from c#.
http://msdn.microsoft.com/library/de...client_dll.asp

Thanks,


Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Josh Schmidt | last post by:
How can one set the terminal services profile and home directory path in AD using VB.NET? I can set the usual profile paths, but terminal services properties are not supported with ADSI. Any...
16
by: Justin Lazanowski | last post by:
Cross posting this question on the recommendation of an I have a .NET application that I am developing in C# I am loading information in from a dataset, and then pushing the dataset to a grid,...
0
by: Jindrich Prchal | last post by:
Hi there. We are running DB2 v7.2 for Win NT on Windows 2000 SP3 machine with poor configuration AMD 1800+, 512MB RAM and usual IDE harddisk. During tests of migration our batch programmes...
28
by: (Pete Cresswell) | last post by:
I'd like to dabble in Terminal Server enough to see if I can get some of my MS Access apps to run through it. I've got the MSDN subscription. Is there enough there for a real-world...
8
by: OHM | last post by:
Hi peoples, I dont know where to place this question, so as I know you guys are all resourceful experts, I thought I would try here. I am writing some code which will be run usingh remote...
6
by: Atley | last post by:
I have a Terminal Services server running Windows 2000 Server. I need to be able to identify, in my application on that server, which client computer is addressing that server and running that...
3
by: shawn | last post by:
In the past I have had SQL and Terminal server on the same PC. With SQL and Windows 2003 Terminal server, you can not have them on the same PC. How can I make this work with SQL and Terminal and...
5
by: cityrock | last post by:
Hello friends. It has come time for me to face a dilema i have been thinking about for a long time, but actually doing nothing. Now its time to act. The situation is "simple", and i have just...
16
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.