public string GetParamString( string parameterName )
{
lock ( sync )
{
CheckConnection( );
byte[] bytes = new byte[260];
int size = bytes.Length;
ParameterType type = ParameterType.String;
unsafe
{
fixed ( byte* ptr = bytes )
{
int errorCode = XimeaAPI.xiGetParam( deviceHandle, parameterName, ptr, out size, ref type );
HandleError( errorCode );
}
}
return Encoding.ASCII.GetString( bytes, 0, size );
}
}