Product Documentation

StartKeyIntercept Not able to listen to keyboard events.

Hi All,


 I am trying to listen to key events using following C# code. I am getting response code 2. Please help me. 


public static UInt32 StartKeyIntercept(out string s)
StringBuilder Data = new StringBuilder(50);
Data.Append("A L");
UInt32 rc = 0;
UInt32 l = 256;
UInt32 r = EhllapiFunc.hllapi(out f, Data, out l, out rc);
s = Data.ToString();
return r;