Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 1106

WTS addin not loading on 32 bit, but works in 64 bit

$
0
0

I have written a terminal services plugin with virtual channels. The server and client code work fine on 64 bit Windows 7. The server side code runs on 32 bit Windows 7 too.

However I can't get a TS plugin to work on 32 bit windows. I launch MSTSC and the plugin does not get activated. The DLL is compiled for 32 bit, no missing dependencies.

I tried the most basic code for testing :

#define WIN32_LEAN_AND_MEAN             
#include <windows.h>
#include <TsVirtualChannels.h>
#include <Cchannel.h>

#include "ts.h"

BOOL VCAPITYPE VirtualChannelEntry(PCHANNEL_ENTRY_POINTS pEntryPoints)
{
    OutputDebugStringA("VirtualChannelEntry called...\n");

    return TRUE;
}


I register this with : 

reg ADD "HKCU\SOFTWARE\Microsoft\Terminal Server Client\Default\Addins\TEST" /v Name /d %CD%\ts.dll /F

I double checked the registry, it has the right path, but the DLL does not load.

i ran the Procmon tool and monitored mstsc.exe - it reads the DLL file, and does a "Loadimage" operation, but the VirtualChannelEntry function is never called.

What is wrong??

Thanks in advance

Vivek

  

cogito cogito ergo cogito sum


Viewing all articles
Browse latest Browse all 1106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>