I would like to retrieve the polarization of the channel being tuned. I tried doing this but I am getting the polarization of the previous channel instead of the channel being tuned. Any ideas of how I can solve this problem? Thanks.
Code:
int __stdcall BeforeChannelChange (TChannelInfo *pChannelInfo)
{
TTransponderInfo trans_info; // '0' is Horizontal and '1'is Vertical
trans_info.dwSize = sizeof TTransponderInfo;
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_GET_TRANSPONDER_INFO, (LPARAM)&trans_info);
char szBuf[100];
wsprintf(szBuf, "Sat Position: %d\nPolarization: %d\n", pChannelInfo->wSatPos, trans_info.Pol);
MessageBox(hwndDD, szBuf, "Notice", MB_OK);
return FALSE;
}