IltmmPlay::get_SourceVideoFOURCC Example for C

char szSourceVideoFOURCC[256]; 
char szFOURCC[5]; 
long lSourceVideoFOURCC; 

IltmmPlay__get_SourceVideoFOURCC(g_player, &lSourceVideoFOURCC); 
if (lSourceVideoFOURCC == 0) 
   strcpy(szSourceVideoFOURCC, "source video is not a FOURCC");
else
{
   szFOURCC[0] = (lSourceVideoFOURCC & 0xff); 
   szFOURCC[1] = (lSourceVideoFOURCC & 0xff00) >> 8; 
   szFOURCC[2] = (lSourceVideoFOURCC & 0xff0000) >> 16; 
   szFOURCC[3] = (lSourceVideoFOURCC & 0xff000000) >> 24; 
   szFOURCC[4] = '\0'; 
   strcpy(szSourceVideoFOURCC, "Source Video ID is ");
   strcat(szSourceVideoFOURCC, szFOURCC); 
}
MessageBox(hwnd, szSourceVideoFOURCC, NULL, MB_OK);