Skip to main content

I was trying to use the API provided for connecting to the RUMBA terminal. This is to automate some monotonous tasks. I could find that there is a .Net DLL provided along with installation of Rumba. However I couldn't find any document for the C# functions provided. All I could find in the supportline pdf link was that they provide a visual studio addin - http://documentation.microfocus.com/help/index.jsp?topic=/GUID-D2BFF507-A4F0-45D1-A13B-5E9C4AA74633/GUID-ABA8241C-C839-46A0-8198-0DD1A8BDF2C7.html. However without addin I managed to call many functions like WD_Connect, WD_SendKeys from my C# and its working fine. However I am having issues with WD_StartHostNotification as the function declaration is as public static extern short WD_StartHostNotification(IntPtr param0, StringBuilder data); I am unable to get the right format for the StringBuilder data parameter. it always returns with 2 which is invalid parameter was specified. Given below is my code. If somebody have the documentation. Please share

using MicroFocus.RDE.Framework;

public void StartHostNotification()

{

StringBuilder notificationParms = new StringBuilder(6);

notificationParms.Append('A');

notificationParms.Append('P');

short hostNotifyReturnCode = EHLLAPI.WD_StartHostNotification(ehlPtr, notificationParms);

}


#Automation
#EHLAPI32
#C
#Rumba
#c

I was trying to use the API provided for connecting to the RUMBA terminal. This is to automate some monotonous tasks. I could find that there is a .Net DLL provided along with installation of Rumba. However I couldn't find any document for the C# functions provided. All I could find in the supportline pdf link was that they provide a visual studio addin - http://documentation.microfocus.com/help/index.jsp?topic=/GUID-D2BFF507-A4F0-45D1-A13B-5E9C4AA74633/GUID-ABA8241C-C839-46A0-8198-0DD1A8BDF2C7.html. However without addin I managed to call many functions like WD_Connect, WD_SendKeys from my C# and its working fine. However I am having issues with WD_StartHostNotification as the function declaration is as public static extern short WD_StartHostNotification(IntPtr param0, StringBuilder data); I am unable to get the right format for the StringBuilder data parameter. it always returns with 2 which is invalid parameter was specified. Given below is my code. If somebody have the documentation. Please share

using MicroFocus.RDE.Framework;

public void StartHostNotification()

{

StringBuilder notificationParms = new StringBuilder(6);

notificationParms.Append('A');

notificationParms.Append('P');

short hostNotifyReturnCode = EHLLAPI.WD_StartHostNotification(ehlPtr, notificationParms);

}


#Automation
#EHLAPI32
#C
#Rumba
#c

Though I'm not familiar with the specific .DLL you are using, I've had success using the EHLAPI32.DLL in the Micro Focus\\RUMBA\\System folder. This is how I setup my parameters for StartHostNotifications:

StringBuilder Data = new StringBuilder(6);

Data.Append("A   P");

There are exactly 3 spaces between "A" (short session name) and "P" (request notification of only host presentation space updates). The reason for the spaces being positions 2-4 are reserved.

IBM Reference for EHLLAPI: www.ibm.com/.../emulator_programming08.htm

Hope this helps. Thanks!