Plugins API::PROGAPI_GET_CHANNEL_NAME

#1
Tried to call this routine and I think there is something wrong (or I did something wrong). The code is below:

int retval = SendMessage(hwnd, WM_USER, PROGAPI_GET_CHANNEL_NAME, (LPARAM)&chaninfo);

by return retval filled with zero, in chaninfo struct I have properly filled fields dwSize, dwSID, dwTID, dwSatPosition. Fields ChannelName, ProviderName, ChannelCaption are empty.

My thoughts was retval should be non-zero(message is processed), and all symbolic information should be fulfilled. Tried this call on current 6 version and 5.14 version.

ps: call to MDAPI_GET_VERSION is succesful, got "MD-API Version 01.02 - 1.06" in return, retval is nonzero. So the window handle is valid.

#2
Forget to mention, chainfo is zeroed before sending and filled like this:

memset(&chaninfo, 0, sizeof(chaninfo));
chaninfo.dwSize = sizeof(chaninfo);
chaninfo.dwSID = SID; //where SID is working non-zero value