Hi. In the function ConvertAdapterName you return ASCII string. Therefore, the connection name in the Cyrillic alphabet will be displayed with a “?”.
Need to:
res = System.Text.Encoding.Default.GetString(szAdapterName, 0, zero_index);
Instead of:
res = System.Text.Encoding.ASCII.GetString(szAdapterName, 0, zero_index);