Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like

Archive for March, 2013

Scriptable Citrix Password Encoder

A while ago I published a tool to Encode and Decode Citrix passwords. Today I am publishing a small update to this tool that makes it scriptable by adding a COM interface.

If you start the tool without parameters you will get the GUI, just like before:

Encrypt | Decrypt Password | Hash | Citrix | Ctx1

To use the COM interface you first need to register the executable with the /regserver switch:

CtxPass /RegServer

After the registration you can call it using any language that supports COM. To get you started I wrote a few examples

(more…)

When starting a particular web based application Java popped up the following dialog:

Java has discovered application components that could indicate a security concern

The dialog asks us if we want to Block potentially unsafe components so to continue we should click no. However users tend to not really read such messages and click Yes which leads to this error:

Error connecting to Central Configuration

(more…)

  • 5 Comments
  • Filed under: Java
  • MSCOMM32.OCX returns error 80040112

    Yesterday I wrote about troubleshooting an application that used Com Port redirection in Citrix.

    During the troubleshoot I noticed that the application used an ActiveX component, MSCOMM32.OCX, for serial communication.

    I wanted to quickly test if the component was correctly registered so I searched the registry from HKEY_CLASSES_ROOT for mscomm32.ocx.

    (more…)

    Returning a string from unmanaged dll to .net

    I write most of my code in unmanaged languages such as Delphi and C/C++. Sometimes customers ask me to interface my code to their .net code in which case I create a dll for them.

    A recurring thing is that I need to return string to .net.

    There are many ways to do this of course but in all cases we need to manage memory: who will allocate the memory for the string and who is responsible for freeing it?

    (more…)

  • 3 Comments
  • Filed under: .NET, C#, C++, Delphi
  • The case of the COM Port Redirection

    SecutestOne of my colleagues asked me to assist in troubleshooting an application called SmartWare FM running on Citrix XenApp.

    This application reads data from an external device called SECUTEST.

    The device is connected to a COM port which is redirected to the XenApp session. In contrast to Microsoft Remote Desktop Services COM ports are not automatically redirected in XenApp but need to be mapped via eg a logonscript (NET USE COM1: \\Client\COM1:) or using UEM.

    In my case the COM port was mapped with RES Workspace Manager:

    image

    (more…)

    Donate


    Blogroll


    Categories


    Archives