p_vout->p_sys->MonitorFromWindow = (HMONITOR (WINAPI *)( HWND, DWORD ))
GetProcAddress( huser32, _T("MonitorFromWindow") );
p_vout->p_sys->GetMonitorInfo =
-#ifndef UNICODE
- GetProcAddress( huser32, "GetMonitorInfoA" );
-#else
GetProcAddress( huser32, _T("GetMonitorInfoW") );
-#endif
}
var_Create( p_vout, "overlay", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
OurDirectDrawEnumerateEx =
(void *)GetProcAddress( p_vout->p_sys->hddraw_dll,
-#ifndef UNICODE
- "DirectDrawEnumerateExA" );
-#else
_T("DirectDrawEnumerateExW") );
-#endif
if( OurDirectDrawEnumerateEx && p_vout->p_sys->MonitorFromWindow )
{
if( hddraw_dll == NULL ) return VLC_SUCCESS;
OurDirectDrawEnumerateEx =
-#ifndef UNICODE
- (void *)GetProcAddress( hddraw_dll, "DirectDrawEnumerateExA" );
-#else
(void *)GetProcAddress( hddraw_dll, _T("DirectDrawEnumerateExW") );
-#endif
if( OurDirectDrawEnumerateEx )
{
#endif
}
-#ifdef UNICODE
{
wchar_t *psz_title = malloc( strlen(val.psz_string) * 2 + 2 );
if( psz_title )
free( val.psz_string ); val.psz_string = (char *)psz_title;
}
}
-#endif
SetWindowText( p_event->p_vout->p_sys->hwnd,
(LPCTSTR)val.psz_string );