#if defined(WIN32)
- m_hComport = CreateFile(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
+ m_hComport = CreateFileA(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if(m_hComport == INVALID_HANDLE_VALUE) {
// we have a problem here can't open com port... somebody else may use it?
// m_dwLastWin32Error = GetLastError();
#if defined(WIN32)
- m_hComport = CreateFile(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
+ m_hComport = CreateFileA(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if(m_hComport == INVALID_HANDLE_VALUE) {
// we have a problem here can't open com port... somebody else may use it?
// m_dwLastWin32Error = GetLastError();
#endif
#if defined(WIN32)
- hComport = CreateFile(devName, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
+ hComport = CreateFileA(devName, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if(hComport == INVALID_HANDLE_VALUE) {
#if !defined(_ATMO_VLC_PLUGIN_)
m_dwLastWin32Error = GetLastError();
#if defined(WIN32)
- m_hComport = CreateFile(serdevice,
+ m_hComport = CreateFileA(serdevice,
GENERIC_WRITE, 0, NULL,
OPEN_EXISTING, 0, NULL);
if ( m_hComport == INVALID_HANDLE_VALUE )
#if defined(WIN32)
- m_hComport = CreateFile(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
+ m_hComport = CreateFileA(serdevice, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if(m_hComport == INVALID_HANDLE_VALUE) {
// we have a problem here can't open com port... somebody else may use it?
// m_dwLastWin32Error = GetLastError();
#include <vlc_playlist.h>
#include <vlc_filter.h>
#include <vlc_atomic.h>
+#include <vlc_charset.h>
#include "filter_picture.h"
COM Server for AtmoLight not running ?
if the exe path is configured try to start the "userspace" driver
*/
- char *psz_path = var_CreateGetStringCommand( p_filter,
- CFG_PREFIX "atmowinexe" );
+ LPTSTR psz_path = ToT(var_CreateGetStringCommand( p_filter,
+ CFG_PREFIX "atmowinexe" ));
if(psz_path != NULL)
{
STARTUPINFO startupinfo;
if(CreateProcess(psz_path, NULL, NULL, NULL,
FALSE, 0, NULL, NULL, &startupinfo, &pinfo) == TRUE)
{
- msg_Dbg(p_filter,"launched AtmoWin from %s",psz_path);
+ msg_Dbg(p_filter,"launched AtmoWin from %s", FromT(psz_path));
WaitForInputIdle(pinfo.hProcess, 5000);
/*
retry to initialize the library COM ... functionality
*/
i = AtmoInitialize(p_filter, false);
} else {
- msg_Err(p_filter,"failed to launch AtmoWin from %s", psz_path);
+ msg_Err(p_filter,"failed to launch AtmoWin from %s", FromT(psz_path));
}
free(psz_path);
}