Question about WodSSH Encoding property - WeOnlyDo Discussion board

Question about WodSSH Encoding property (wodSSH / wodSSH.NET)

by Jasmine, Monday, January 04, 2016, 12:23 (3034 days ago) @ kevin

Hi Kevin.

Samples are based on older version of wodSSH when that property did not exist. You can easily add it's declaration. In sample's folder open wodSSH.h and below 'GetLanguage' and 'SetLanguage' lines add these:

long GetEncoding();
void SetEncoding(long nNewValue);

and in wodSSH.cpp at the end add implementations:

long IwodSSHCom::GetEncoding()
{
 long result;
 InvokeHelper(0x37, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
 return result;
}

void IwodSSHCom::SetEncoding(long nNewValue)
{
 static BYTE parms[] =
  VTS_I4;
 InvokeHelper(0x37, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  nNewValue);
}

and that should make this property available.

I hope this helps!
Jasmine.


Complete thread: