// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "liveactivex.h"

/////////////////////////////////////////////////////////////////////////////
// CLiveActiveX

IMPLEMENT_DYNCREATE(CLiveActiveX, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CLiveActiveX properties

CString CLiveActiveX::GetIPAddress()
{
	CString result;
	GetProperty(0x1, VT_BSTR, (void*)&result);
	return result;
}

void CLiveActiveX::SetIPAddress(LPCTSTR propVal)
{
	SetProperty(0x1, VT_BSTR, propVal);
}

long CLiveActiveX::GetPort()
{
	long result;
	GetProperty(0x2, VT_I4, (void*)&result);
	return result;
}

void CLiveActiveX::SetPort(long propVal)
{
	SetProperty(0x2, VT_I4, propVal);
}

CString CLiveActiveX::GetUserName()
{
	CString result;
	GetProperty(0x3, VT_BSTR, (void*)&result);
	return result;
}

void CLiveActiveX::SetUserName(LPCTSTR propVal)
{
	SetProperty(0x3, VT_BSTR, propVal);
}

CString CLiveActiveX::GetPassword()
{
	CString result;
	GetProperty(0x4, VT_BSTR, (void*)&result);
	return result;
}

void CLiveActiveX::SetPassword(LPCTSTR propVal)
{
	SetProperty(0x4, VT_BSTR, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CLiveActiveX operations

long CLiveActiveX::Connect()
{
	long result;
	InvokeHelper(0x5, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
    return result;
}

long CLiveActiveX::DisConnect()
{
    long result;
	InvokeHelper(0x6, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
    return result;
}

long CLiveActiveX::SetActiveView(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x7, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView);
	return result;
}

long CLiveActiveX::GetActiveView()
{
	long result;
	InvokeHelper(0x8, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

long CLiveActiveX::GetCameraIndexFromView(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView);
	return result;
}

long CLiveActiveX::GetCameraCount()
{
	long result;
	InvokeHelper(0xa, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

CString CLiveActiveX::GetCameraName(long iCameraIndex)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xb, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iCameraIndex);
	return result;
}

CString CLiveActiveX::GetCameraModel(long iCameraIndex)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xc, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iCameraIndex);
	return result;
}

void CLiveActiveX::EnableAudio(long iView, long bEnable)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0xd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 iView, bEnable);
}

long CLiveActiveX::ConnectToCamera(long iView, long iCameraIndex)
{
	long result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0xe, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView, iCameraIndex);
	return result;
}

void CLiveActiveX::ChangeResolution(long iWidth, long iHeight)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 iWidth, iHeight);
}

void CLiveActiveX::SetOSDConfig(long icmd, LPCTSTR FontStyle, long iFontSize, long iColorR, long iColorG, long iColorB, long iBColorR, long iBColorG, long iBColorB, long bHasEdge, long bBold, long iTransparency)
{
	static BYTE parms[] =
		VTS_I4 VTS_BSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4;
	InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 icmd, FontStyle, iFontSize, iColorR, iColorG, iColorB, iBColorR, iBColorG, iBColorB, bHasEdge, bBold, iTransparency);
}

/*CString CLiveActiveX::GetRawImage(long iView, long iVideoFormat)
{
    CString result;
    static BYTE parms[] =
        VTS_I4 VTS_I4;
    InvokeHelper(0x11, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
        iView, iVideoFormat);
    return result;
}*/

VARIANT CLiveActiveX::GetRawImage(long iView, long iVideoFormat)
{
	VARIANT result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x11, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
		iView, iVideoFormat);
	return result;
}

long CLiveActiveX::GetDICount()
{
	long result;
	InvokeHelper(0x12, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

long CLiveActiveX::GetDOCount()
{
	long result;
	InvokeHelper(0x13, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

CString CLiveActiveX::GetDIName(long iInputIndex)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x14, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iInputIndex);
	return result;
}

CString CLiveActiveX::GetDOName(long iOutputIndex)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x15, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iOutputIndex);
	return result;
}

long CLiveActiveX::GetDIStatus(long iInputIndex)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x16, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iInputIndex);
	return result;
}

long CLiveActiveX::GetDOStatus(long iOutputIndex)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x17, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iOutputIndex);
	return result;
}

void CLiveActiveX::SetDOStatus(long iOutputIndex, long iValue)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 iOutputIndex, iValue);
}

long CLiveActiveX::GetPresetCount(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x19, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView);
	return result;
}

CString CLiveActiveX::GetPresetName(long iView, long iPresetNum)
{
	CString result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x1a, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		iView, iPresetNum);
	return result;
}

long CLiveActiveX::SetPreset(long iView, long iPresetNum, LPCTSTR PresetName)
{
	long result;
	static BYTE parms[] =
		VTS_I4 VTS_I4 VTS_BSTR;
	InvokeHelper(0x1b, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView, iPresetNum, PresetName);
	return result;
}

void CLiveActiveX::PTZZoomTele(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZZoomWide(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZUp(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZDown(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZLeft(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZRight(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZUpLeft(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZUpRight(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZDownLeft(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x24, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZDownRight(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x25, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZHome()
{
	InvokeHelper(0x26, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::PTZPatrol(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x27, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZFocusNear(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x28, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::PTZFocusFar(long bStart)
{
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x29, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 bStart);
}

void CLiveActiveX::Play()
{
	InvokeHelper(0x2a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::Stop()
{
	InvokeHelper(0x2b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::Drop()
{
	InvokeHelper(0x2c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

long CLiveActiveX::Snapshot(long iView, LPCTSTR FileName)
{
	long result;
	static BYTE parms[] =
		VTS_I4 VTS_BSTR;
	InvokeHelper(0x2d, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		iView, FileName);
	return result;
}

void CLiveActiveX::SetView1x1()
{
	InvokeHelper(0x2e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::SetView2x2()
{
	InvokeHelper(0x2f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::SetView3x3()
{
	InvokeHelper(0x30, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::SetView4x4()
{
	InvokeHelper(0x31, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CLiveActiveX::SetViewFullScreen()
{
	InvokeHelper(0x32, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

long CLiveActiveX::GetRawImageWidth(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x33, DISPATCH_METHOD, VT_I4, (void*)&result, parms, iView);
	return result;    
}
long CLiveActiveX::GetRawImageHeight(long iView)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x34, DISPATCH_METHOD, VT_I4, (void*)&result, parms, iView);
	return result;      
}
void CLiveActiveX::PTZPresetGO(long iView, long iPresetNum)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x35, DISPATCH_METHOD, VT_EMPTY, NULL, parms, iView, iPresetNum); 
}

long CLiveActiveX::ISFullScreen()
{
	long result;
	InvokeHelper(0x36, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

long CLiveActiveX::DuplicateCamera(long iCameraIndex)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x37, DISPATCH_METHOD, VT_I4, (void*)&result, parms, iCameraIndex);
	return result;
}

long CLiveActiveX::RemoveDuplicateCamera(long iCameraIndex)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x38, DISPATCH_METHOD, VT_I4, (void*)&result, parms, iCameraIndex);
	return result;
}

bool CLiveActiveX::GetPTZCapability(long iCameraIndex, long iParam)
{
	long result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x39, DISPATCH_METHOD, VT_I4, (void*)&result, parms, 
		iCameraIndex, iParam);
	return (result != 0);
}

void CLiveActiveX::AboutBox()
{
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
