1770 lines
44 KiB
C
1770 lines
44 KiB
C
|
#pragma once
|
||
|
#include "_Picture.h"
|
||
|
|
||
|
// 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.
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CVideo wrapper class
|
||
|
|
||
|
class CVideo : public CWnd
|
||
|
{
|
||
|
protected:
|
||
|
DECLARE_DYNCREATE(CVideo)
|
||
|
public:
|
||
|
CLSID const& GetClsid()
|
||
|
{
|
||
|
static CLSID const clsid
|
||
|
= { 0x922FB007, 0xDD9A, 0x11D3, { 0xBD, 0x8D, 0xDA, 0xAF, 0xCB, 0x8D, 0x93, 0x78 } };
|
||
|
return clsid;
|
||
|
}
|
||
|
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
|
||
|
const RECT& rect, CWnd* pParentWnd, UINT nID,
|
||
|
CCreateContext* pContext = NULL)
|
||
|
{
|
||
|
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
|
||
|
}
|
||
|
|
||
|
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
|
||
|
UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
|
||
|
BSTR bstrLicKey = NULL)
|
||
|
{
|
||
|
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
|
||
|
pPersist, bStorage, bstrLicKey);
|
||
|
}
|
||
|
|
||
|
// Attributes
|
||
|
public:
|
||
|
enum
|
||
|
{
|
||
|
vcxNo = 0,
|
||
|
vcxBoth = 1,
|
||
|
vcxPreviewOnly = 2,
|
||
|
vcxGrabOnly = 3
|
||
|
}vcxUseVideoFilterEnum;
|
||
|
enum
|
||
|
{
|
||
|
vcxSystemDefaultRenderer = 0,
|
||
|
vcxVMR9 = 1,
|
||
|
vcxVMR7 = 2,
|
||
|
vcxGDI = 3,
|
||
|
vcxDeckLinkVideoRenderer = 4
|
||
|
}vcxVideoRendererEnum;
|
||
|
|
||
|
|
||
|
// Operations
|
||
|
public:
|
||
|
|
||
|
// _DDNVideoX
|
||
|
|
||
|
// Functions
|
||
|
//
|
||
|
|
||
|
BOOL SaveFrame(LPCTSTR filename)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0x35, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, filename);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL StartCapture()
|
||
|
{
|
||
|
BOOL result;
|
||
|
InvokeHelper(0x36, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL StopCapture()
|
||
|
{
|
||
|
BOOL result;
|
||
|
InvokeHelper(0x37, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL SetVideoFormat(long width, long height)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x38, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, width, height);
|
||
|
return result;
|
||
|
}
|
||
|
long GetCapStatus(long * ImageWidth, long * ImageHeight, long * CurrentVideoFrame, long * CurrentVideoFramesDropped, long * CurrentTimeElapsedMS, long * fCapturingNow)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 ;
|
||
|
InvokeHelper(0x39, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ImageWidth, ImageHeight, CurrentVideoFrame, CurrentVideoFramesDropped, CurrentTimeElapsedMS, fCapturingNow);
|
||
|
return result;
|
||
|
}
|
||
|
LPDISPATCH GrabFrame()
|
||
|
{
|
||
|
LPDISPATCH result;
|
||
|
InvokeHelper(0x3a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL SaveFrameJPG(LPCTSTR filename, long quality, double resize_ratio=1.0)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_I4 VTS_R8 ;
|
||
|
InvokeHelper(0x3b, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, filename, quality ,resize_ratio);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL UploadFrame(LPCTSTR server, LPCTSTR username, LPCTSTR password, LPCTSTR path, LPCTSTR filename, long port, long quality)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x3c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, server, username, password, path, filename, port, quality);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL GetAudioFormat(long * FmtTag, long * nChannels, long * nSamplesPerSec, long * nAvgBytesPerSec, long * nBlockAlign, long * wBitsPerSample)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 ;
|
||
|
InvokeHelper(0x3d, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, FmtTag, nChannels, nSamplesPerSec, nAvgBytesPerSec, nBlockAlign, wBitsPerSample);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL SetAudioFormat(long FmtTag, long nChannels, long nSamplesPerSec, long nAvgBytesPerSec, long nBlockAlign, long nBitsPerSample)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x3e, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, FmtTag, nChannels, nSamplesPerSec, nAvgBytesPerSec, nBlockAlign, nBitsPerSample);
|
||
|
return result;
|
||
|
}
|
||
|
long DetectMotion()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x3f, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetVideoDeviceName(long Index)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x40, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Index);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetAudioDeviceName(long Index)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x41, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Index);
|
||
|
return result;
|
||
|
}
|
||
|
long AllocCapFile(long FileSizeMb)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x42, DISPATCH_METHOD, VT_I4, (void*)&result, parms, FileSizeMb);
|
||
|
return result;
|
||
|
}
|
||
|
long CopyCaptureFile(LPCTSTR New)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0x43, DISPATCH_METHOD, VT_I4, (void*)&result, parms, New);
|
||
|
return result;
|
||
|
}
|
||
|
long Recompress(LPCTSTR SrcFile, LPCTSTR DestFile)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR ;
|
||
|
InvokeHelper(0x44, DISPATCH_METHOD, VT_I4, (void*)&result, parms, SrcFile, DestFile);
|
||
|
return result;
|
||
|
}
|
||
|
VARIANT GetRGB()
|
||
|
{
|
||
|
VARIANT result;
|
||
|
InvokeHelper(0x45, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long SetTextOverlay(long Index, LPCTSTR Caption, long X, long Y, LPCTSTR FontName, long FontSize, long FColor, long BColor)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_BSTR VTS_I4 VTS_I4 VTS_BSTR VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x46, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Index, Caption, X, Y, FontName, FontSize, FColor, BColor);
|
||
|
return result;
|
||
|
}
|
||
|
long SetCrop(long X, long Y, long W, long H)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x47, DISPATCH_METHOD, VT_I4, (void*)&result, parms, X, Y, W, H);
|
||
|
return result;
|
||
|
}
|
||
|
long GetVideoFormat(long * width, long * height)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_PI4 VTS_PI4 ;
|
||
|
InvokeHelper(0x48, DISPATCH_METHOD, VT_I4, (void*)&result, parms, width, height);
|
||
|
return result;
|
||
|
}
|
||
|
long SavePictureJPG(LPDISPATCH Picture, LPCTSTR filename, long quality)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_DISPATCH VTS_BSTR VTS_I4 ;
|
||
|
InvokeHelper(0x49, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Picture, filename, quality);
|
||
|
return result;
|
||
|
}
|
||
|
LPDISPATCH ReceiveFrame(LPCTSTR ServerName)
|
||
|
{
|
||
|
LPDISPATCH result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0x4a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, ServerName);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowVideoSourceDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x4b, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowVideoFormatDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x4c, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowVideoCodecDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x4d, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowAudioCodecDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x4e, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowAudioSourceDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x4f, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowAudioFormatDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x50, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetFrameAsHBITMAP()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x51, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetVideoProcAmpValueRange(long ValueIndex, long * Min, long * Max, long * SteppingDelta, long * Default)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 ;
|
||
|
InvokeHelper(0x52, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Min, Max, SteppingDelta, Default);
|
||
|
return result;
|
||
|
}
|
||
|
long SetMotionMask(long Index, long Left, long Top, long width, long height)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x53, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Index, Left, Top, width, height);
|
||
|
return result;
|
||
|
}
|
||
|
long PauseCapture()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x54, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ResumeCapture()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x55, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
VARIANT GetVideoCaps()
|
||
|
{
|
||
|
VARIANT result;
|
||
|
InvokeHelper(0x56, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long SingleFrameOpen(long fps)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x57, DISPATCH_METHOD, VT_I4, (void*)&result, parms, fps);
|
||
|
return result;
|
||
|
}
|
||
|
long SingleFrameClose()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x58, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long SingleFrameAdd()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x59, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long SetAudioDelay(long DelayMS)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x5a, DISPATCH_METHOD, VT_I4, (void*)&result, parms, DelayMS);
|
||
|
return result;
|
||
|
}
|
||
|
LPDISPATCH CompareImages(LPDISPATCH Picture1, LPDISPATCH Picture2, long Treshold, long Color1, long Color2)
|
||
|
{
|
||
|
LPDISPATCH result;
|
||
|
static BYTE parms[] = VTS_DISPATCH VTS_DISPATCH VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x5b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, Picture1, Picture2, Treshold, Color1, Color2);
|
||
|
return result;
|
||
|
}
|
||
|
long SetBitmapOverlay(long BitmapHandle, long X, long Y, long TransColor, long Alpha)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x5c, DISPATCH_METHOD, VT_I4, (void*)&result, parms, BitmapHandle, X, Y, TransColor, Alpha);
|
||
|
return result;
|
||
|
}
|
||
|
long CameraControlGet(long Prop)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x5d, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Prop);
|
||
|
return result;
|
||
|
}
|
||
|
long CameraControlSet(long Prop, long Val)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x5e, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Prop, Val);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetVideoCodecName(long nIndex)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x5f, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, nIndex);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetAudioCodecName(long Index)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x60, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Index);
|
||
|
return result;
|
||
|
}
|
||
|
long StartCapture2()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x61, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetAudioInputCount()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x62, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetAudioInputName(long Index)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x63, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Index);
|
||
|
return result;
|
||
|
}
|
||
|
long GetVideoDeviceCount()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x64, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetVideoCodecCount()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x65, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetAudioCodecCount()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x66, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetAudioDeviceCount()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x67, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long StopBroadcast()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x68, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long StartBroadcast(long port, long MaxConnections)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x69, DISPATCH_METHOD, VT_I4, (void*)&result, parms, port, MaxConnections);
|
||
|
return result;
|
||
|
}
|
||
|
long GetProfileCount()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x6a, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetProfileName(long ProfileIndex)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x6b, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, ProfileIndex);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetProfileDesc(long ProfileIndex)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x6c, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, ProfileIndex);
|
||
|
return result;
|
||
|
}
|
||
|
double GetActualFrameRate()
|
||
|
{
|
||
|
double result;
|
||
|
InvokeHelper(0x6d, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long SetAudioInputLevel(long Level)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x6e, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Level);
|
||
|
return result;
|
||
|
}
|
||
|
long SetAudioVolume(long Volume)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x6f, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Volume);
|
||
|
return result;
|
||
|
}
|
||
|
long SetMasterAudioVolume(long LineID, long Volume)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x70, DISPATCH_METHOD, VT_I4, (void*)&result, parms, LineID, Volume);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetFilterSettings(long FilterID)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x71, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, FilterID);
|
||
|
return result;
|
||
|
}
|
||
|
long SetFilterSettings(long Filter, LPCTSTR Data)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_BSTR ;
|
||
|
InvokeHelper(0x72, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Filter, Data);
|
||
|
return result;
|
||
|
}
|
||
|
double GetCapFileSize()
|
||
|
{
|
||
|
double result;
|
||
|
InvokeHelper(0x73, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowVideoCrossbarDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x74, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowUserFilterDlg(long FilterIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x75, DISPATCH_METHOD, VT_I4, (void*)&result, parms, FilterIndex);
|
||
|
return result;
|
||
|
}
|
||
|
long GetAudioLevel()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x76, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long SetVideoFormatEx(long CapabilityIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x77, DISPATCH_METHOD, VT_I4, (void*)&result, parms, CapabilityIndex);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL SetHighPriority(BOOL High)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_BOOL ;
|
||
|
InvokeHelper(0x78, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, High);
|
||
|
return result;
|
||
|
}
|
||
|
long LoadProfileFromURL(LPCTSTR URL)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0x79, DISPATCH_METHOD, VT_I4, (void*)&result, parms, URL);
|
||
|
return result;
|
||
|
}
|
||
|
VARIANT HTTPUpload(LPCTSTR WebServer, LPCTSTR WebPage, LPCTSTR Fields, LPCTSTR Files)
|
||
|
{
|
||
|
VARIANT result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR ;
|
||
|
InvokeHelper(0x7a, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms, WebServer, WebPage, Fields, Files);
|
||
|
return result;
|
||
|
}
|
||
|
LPUNKNOWN GetVRIUnknown()
|
||
|
{
|
||
|
LPUNKNOWN result;
|
||
|
InvokeHelper(0x7b, DISPATCH_METHOD, VT_UNKNOWN, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long ReceiveAudio(LPCTSTR ServerAddress, BOOL Play, long * nChannels, long * nSamplesPerSecond, long * nBytesPerSample, VARIANT * PCMData)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BOOL VTS_PI4 VTS_PI4 VTS_PI4 VTS_PVARIANT ;
|
||
|
InvokeHelper(0x7c, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ServerAddress, Play, nChannels, nSamplesPerSecond, nBytesPerSample, PCMData);
|
||
|
return result;
|
||
|
}
|
||
|
long CameraControlGetRange(long Prop, long * MinVal, long * MaxVal, long * SteppingDelta, long * DefaultValue, long * CapsFlags)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 VTS_PI4 ;
|
||
|
InvokeHelper(0x7d, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Prop, MinVal, MaxVal, SteppingDelta, DefaultValue, CapsFlags);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetVideoDeviceDesc(long Index)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x7e, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Index);
|
||
|
return result;
|
||
|
}
|
||
|
long DisplayRemote(LPCTSTR RemoteAddress, BOOL Audio)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BOOL ;
|
||
|
InvokeHelper(0x7f, DISPATCH_METHOD, VT_I4, (void*)&result, parms, RemoteAddress, Audio);
|
||
|
return result;
|
||
|
}
|
||
|
long SingleFrameAddPicture(long BitmapHandle)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x80, DISPATCH_METHOD, VT_I4, (void*)&result, parms, BitmapHandle);
|
||
|
return result;
|
||
|
}
|
||
|
long SetFadeLevel(long NewLevel)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x81, DISPATCH_METHOD, VT_I4, (void*)&result, parms, NewLevel);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL EnableMicroTouch(BOOL bEnable)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_BOOL ;
|
||
|
InvokeHelper(0x82, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, bEnable);
|
||
|
return result;
|
||
|
}
|
||
|
long RecompressEx(LPCTSTR SrcFile1, LPCTSTR SrcFile2, LPCTSTR DestFile, double TimeStart, double TimeEnd)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_R8 VTS_R8 ;
|
||
|
InvokeHelper(0x83, DISPATCH_METHOD, VT_I4, (void*)&result, parms, SrcFile1, SrcFile2, DestFile, TimeStart, TimeEnd);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetVideoCaps2()
|
||
|
{
|
||
|
CString result;
|
||
|
InvokeHelper(0x84, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long StartBroadcastPush(LPCTSTR URL, LPCTSTR User, LPCTSTR password)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR ;
|
||
|
InvokeHelper(0x85, DISPATCH_METHOD, VT_I4, (void*)&result, parms, URL, User, password);
|
||
|
return result;
|
||
|
}
|
||
|
long ShowVideoDisplayDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0x86, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long GetAudioLevel2(long * Left, long * Right)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_PI4 VTS_PI4 ;
|
||
|
InvokeHelper(0x87, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Left, Right);
|
||
|
return result;
|
||
|
}
|
||
|
long SendScriptCommand(LPCTSTR Type, LPCTSTR Data)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR ;
|
||
|
InvokeHelper(0x88, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Type, Data);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL UploadFile(LPCTSTR server, LPCTSTR username, LPCTSTR password, LPCTSTR path, LPCTSTR server_filename, LPCTSTR local_filepath, long port)
|
||
|
{
|
||
|
BOOL result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4 ;
|
||
|
InvokeHelper(0x89, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, server, username, password, path, server_filename, local_filepath, port);
|
||
|
return result;
|
||
|
}
|
||
|
long SetZoom(long Left, long Top, long width, long height)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x8a, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Left, Top, width, height);
|
||
|
return result;
|
||
|
}
|
||
|
long SetChromaKey(LPCTSTR BackImage, long MinTransparentColor, long MaxTransparentColor)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x8b, DISPATCH_METHOD, VT_I4, (void*)&result, parms, BackImage, MinTransparentColor, MaxTransparentColor);
|
||
|
return result;
|
||
|
}
|
||
|
long PlayRemoteAudio(LPCTSTR RemoteAddress)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0x8c, DISPATCH_METHOD, VT_I4, (void*)&result, parms, RemoteAddress);
|
||
|
return result;
|
||
|
}
|
||
|
long SetAlphaBitmap(long hDC, float X, float Y, float W, float H, float Alpha, long SrcKey)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_R4 VTS_R4 VTS_R4 VTS_R4 VTS_R4 VTS_I4 ;
|
||
|
InvokeHelper(0x8d, DISPATCH_METHOD, VT_I4, (void*)&result, parms, hDC, X, Y, W, H, Alpha, SrcKey);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetDeviceID(long DeviceIndex)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x8e, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, DeviceIndex);
|
||
|
return result;
|
||
|
}
|
||
|
long ApplyChromaKey(LPCTSTR SrcFile, LPCTSTR BackFile, LPCTSTR DestFile, long MinTransClr, long MaxTransClr)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x8f, DISPATCH_METHOD, VT_I4, (void*)&result, parms, SrcFile, BackFile, DestFile, MinTransClr, MaxTransClr);
|
||
|
return result;
|
||
|
}
|
||
|
CString GetCapInfo(long ValueIndex)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x90, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
CString DetectMotionRects(long Divider)
|
||
|
{
|
||
|
CString result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x91, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, Divider);
|
||
|
return result;
|
||
|
}
|
||
|
long SetAudioBalance(long Balance)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x92, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Balance);
|
||
|
return result;
|
||
|
}
|
||
|
long GetColorIn(long X, long Y, long W, long H)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x93, DISPATCH_METHOD, VT_I4, (void*)&result, parms, X, Y, W, H);
|
||
|
return result;
|
||
|
}
|
||
|
long LightOn(long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x94, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Value);
|
||
|
return result;
|
||
|
}
|
||
|
long FreezePreview(long Freeze)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x95, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Freeze);
|
||
|
return result;
|
||
|
}
|
||
|
BOOL CopyFrame()
|
||
|
{
|
||
|
BOOL result;
|
||
|
InvokeHelper(0x96, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
long get_VideoProcAmp(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x97, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void put_VideoProcAmp(long ValueIndex, long newValue)
|
||
|
{
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x97, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
long GetAWBR(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0x98, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAWBR(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x99, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
long GetAWBG(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0x9a, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAWBG(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x9b, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
long GetAWBB(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0x9c, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAWBB(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x9d, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
long GetMirror(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xa8, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetMirror(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xa9, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
long GetAutoExposure(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xac, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAutoExposure(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xad, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
long GetExposure(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xae, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void SetExposure(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xaf, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
double Pix2Length(double fPixel, double fMag, long vWidth, long vindex)
|
||
|
{
|
||
|
double result;
|
||
|
static BYTE parms[] = VTS_R8 VTS_R8 VTS_I4 VTS_I4;
|
||
|
InvokeHelper(0xb6, DISPATCH_METHOD, VT_R8, (void*)&result, parms, fPixel, vWidth, vindex);
|
||
|
return result;
|
||
|
}
|
||
|
double Pix2Length2(double fPixel, double fMag, long PhotoWidth, LPCTSTR ProductName)
|
||
|
{
|
||
|
double result;
|
||
|
static BYTE parms[] = VTS_R8 VTS_R8 VTS_I4 VTS_BSTR;
|
||
|
InvokeHelper(0xb7, DISPATCH_METHOD, VT_R8, (void*)&result, parms, fPixel, fMag ,PhotoWidth ,ProductName);
|
||
|
return result;
|
||
|
}
|
||
|
long GetExposureStability(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xb8, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
void SetExposureStability(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xb9, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
void FreezeAWB(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xba, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
long GetVideoWindowHandle(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xbb, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
long GetLuma(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xbc, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetLEDStrobeLength(long ValueIndex, long LEDStrobeLength)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xbd, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, LEDStrobeLength);
|
||
|
}
|
||
|
|
||
|
long GetFocusLength(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xbe, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
long GetExposureValue(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xc1, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetExposureValue(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xc2, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
long GetGain(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xc3, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetGain(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xc4, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
long GetAETarget(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xc5, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetAETarget(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xc6, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
long GetAEStability(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xc7, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetAEStability(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xc8, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
void SetExposureTime(long ValueIndex, long newValue)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xc9, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, newValue);
|
||
|
}
|
||
|
|
||
|
long GetLEDState(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xce, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetLEDState(long ValueIndex, long LEDStatus)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xcf, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, LEDStatus);
|
||
|
}
|
||
|
|
||
|
long KnobMotorRotate(LONG Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xd0, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Value);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetFlicker(LONG Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xd1, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Value);
|
||
|
}
|
||
|
|
||
|
double GetAMR(LONG vindex)
|
||
|
{
|
||
|
double result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xd9, DISPATCH_METHOD, VT_R8, (void*)&result, parms, vindex);
|
||
|
}
|
||
|
|
||
|
VARIANT GetBarcode()
|
||
|
{
|
||
|
VARIANT result;
|
||
|
InvokeHelper(0xdb, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void BarcodeInit()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0xdc, DISPATCH_METHOD, VT_EMPTY, (void*)&result, NULL);
|
||
|
}
|
||
|
|
||
|
void ShowBarcodeSettingDlg()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0xdd, DISPATCH_METHOD, VT_EMPTY, (void*)&result, NULL);
|
||
|
}
|
||
|
|
||
|
void SaveEDR(long vindex,BSTR fileName)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_BSTR ;
|
||
|
InvokeHelper(0xde, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, vindex, fileName);
|
||
|
}
|
||
|
|
||
|
void SaveEDOF(long vindex,long Value, BSTR fileName)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_BSTR ;
|
||
|
InvokeHelper(0xdf, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, vindex, Value, fileName);
|
||
|
}
|
||
|
|
||
|
void AutoFocus(long vindex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xe2, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, vindex);
|
||
|
}
|
||
|
|
||
|
void SetSerialNum(BSTR SerialNum)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0xe3, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, SerialNum);
|
||
|
}
|
||
|
|
||
|
CString GetSerialNum()
|
||
|
{
|
||
|
CString result;
|
||
|
InvokeHelper(0xe4, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetSpecialID(BSTR SpecialID)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_BSTR ;
|
||
|
InvokeHelper(0xe5, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, SpecialID);
|
||
|
}
|
||
|
|
||
|
CString GetSpecialID()
|
||
|
{
|
||
|
CString result;
|
||
|
InvokeHelper(0xe6, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetLowLight(LONG Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0xe7, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, Value);
|
||
|
}
|
||
|
|
||
|
long GetNegative(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xe8, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetNegative(long ValueIndex, long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xe9, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Value);
|
||
|
}
|
||
|
|
||
|
void DisableAMR()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0xea, DISPATCH_METHOD, VT_EMPTY, (void*)&result, NULL);
|
||
|
}
|
||
|
|
||
|
void DisableFootPedal()
|
||
|
{
|
||
|
long result;
|
||
|
InvokeHelper(0xeb, DISPATCH_METHOD, VT_EMPTY, (void*)&result, NULL);
|
||
|
}
|
||
|
|
||
|
void SetStrobeRate(double Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_R8 ;
|
||
|
InvokeHelper(0xec, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, Value);
|
||
|
}
|
||
|
|
||
|
void SetStrobeMode(LONG Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0xed, DISPATCH_METHOD, VT_EMPTY, (void*)&result, parms, Value);
|
||
|
}
|
||
|
|
||
|
void SetFLCSwitch(long ValueIndex, long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xee, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Value);
|
||
|
}
|
||
|
|
||
|
void SetFLCLevel(long ValueIndex, long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xef, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Value);
|
||
|
}
|
||
|
|
||
|
void SetAXILevel(long ValueIndex, long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xf0, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Value);
|
||
|
}
|
||
|
|
||
|
long GetSobelCenter(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xf1, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
VARIANT GetSobelArea(long ValueIndex)
|
||
|
{
|
||
|
VARIANT result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xf2, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
|
||
|
void SetLensInitPos(long ValueIndex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0xf5, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex);
|
||
|
}
|
||
|
|
||
|
void SetLensPos(long ValueIndex ,long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4;
|
||
|
InvokeHelper(0xf6, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Value);
|
||
|
}
|
||
|
|
||
|
void GetLensPosLimits(LONG vindex,long* UpperLmt, long* LowerLmt)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_PI4 VTS_PI4;
|
||
|
InvokeHelper(0xf7, DISPATCH_METHOD, VT_I4, (void*)&result, parms, UpperLmt, LowerLmt);
|
||
|
}
|
||
|
|
||
|
long GetConfig(long vindex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xf8, DISPATCH_METHOD, VT_I4, (void*)&result, parms, vindex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void SetFocusSize(long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0xf9, DISPATCH_METHOD, VT_I4, (void*)&result, parms, Value);
|
||
|
}
|
||
|
|
||
|
void SetISO(long vindex,long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4;
|
||
|
InvokeHelper(0xfA, DISPATCH_METHOD, VT_I4, (void*)&result, parms, vindex, Value);
|
||
|
}
|
||
|
|
||
|
void ReFocus(long vindex,long coordX,long coordY)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4;
|
||
|
InvokeHelper(0xfB, DISPATCH_METHOD, VT_I4, (void*)&result, parms, vindex, coordX, coordY);
|
||
|
}
|
||
|
|
||
|
|
||
|
long GetReFocusSignal(long vindex)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xfC, DISPATCH_METHOD, VT_I4, (void*)&result, parms, vindex);
|
||
|
}
|
||
|
|
||
|
double GetAMRwithLensPos(long vindex)
|
||
|
{
|
||
|
double result;
|
||
|
static BYTE parms[] = VTS_I4;
|
||
|
InvokeHelper(0xfD, DISPATCH_METHOD, VT_R8, (void*)&result, parms, vindex);
|
||
|
}
|
||
|
|
||
|
void SetEFLC(long DeviceIndex, long Quadrant ,long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 VTS_I4;
|
||
|
InvokeHelper(0xfE, DISPATCH_METHOD, VT_I4, (void*)&result, parms, DeviceIndex, Quadrant, Value);
|
||
|
}
|
||
|
|
||
|
void SetAimpointLevel(long ValueIndex, long Value)
|
||
|
{
|
||
|
long result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0xfF, DISPATCH_METHOD, VT_I4, (void*)&result, parms, ValueIndex, Value);
|
||
|
}
|
||
|
|
||
|
VARIANT GetEDOFRGB(long vindex,long nDepth)
|
||
|
{
|
||
|
VARIANT result;
|
||
|
static BYTE parms[] = VTS_I4 VTS_I4 ;
|
||
|
InvokeHelper(0x100, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms, vindex, nDepth);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
VARIANT GetEDRRGB(long vindex)
|
||
|
{
|
||
|
VARIANT result;
|
||
|
static BYTE parms[] = VTS_I4 ;
|
||
|
InvokeHelper(0x101, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms, vindex);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
void AboutBox()
|
||
|
{
|
||
|
InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
|
||
|
}
|
||
|
|
||
|
// Properties
|
||
|
//
|
||
|
|
||
|
OLE_HANDLE GethWnd()
|
||
|
{
|
||
|
OLE_HANDLE result;
|
||
|
GetProperty(DISPID_HWND, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SethWnd(OLE_HANDLE propVal)
|
||
|
{
|
||
|
SetProperty(DISPID_HWND, VT_I4, propVal);
|
||
|
}
|
||
|
BOOL GetCapTimeLimitEnabled()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x1, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetCapTimeLimitEnabled(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x1, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetCapTimeLimit()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x2, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetCapTimeLimit(long propVal)
|
||
|
{
|
||
|
SetProperty(0x2, VT_I4, propVal);
|
||
|
}
|
||
|
long GetVideoCodecQuality()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x3, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoCodecQuality(long propVal)
|
||
|
{
|
||
|
SetProperty(0x3, VT_I4, propVal);
|
||
|
}
|
||
|
CString GetServerPassword()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x4, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetServerPassword(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x4, VT_BSTR, propVal);
|
||
|
}
|
||
|
long GetDebugMode()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x5, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetDebugMode(long propVal)
|
||
|
{
|
||
|
SetProperty(0x5, VT_I4, propVal);
|
||
|
}
|
||
|
BOOL GetFTPPassiveMode()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x6, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetFTPPassiveMode(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x6, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetMasterStream()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x7, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetMasterStream(long propVal)
|
||
|
{
|
||
|
SetProperty(0x7, VT_I4, propVal);
|
||
|
}
|
||
|
long GetProfileIndex()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x8, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetProfileIndex(long propVal)
|
||
|
{
|
||
|
SetProperty(0x8, VT_I4, propVal);
|
||
|
}
|
||
|
long GetServerQuality()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x9, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetServerQuality(long propVal)
|
||
|
{
|
||
|
SetProperty(0x9, VT_I4, propVal);
|
||
|
}
|
||
|
CString GetProfileData()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0xa, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetProfileData(CString propVal)
|
||
|
{
|
||
|
SetProperty(0xa, VT_BSTR, propVal);
|
||
|
}
|
||
|
LPUNKNOWN GetUserFilterIUnknown()
|
||
|
{
|
||
|
LPUNKNOWN result;
|
||
|
GetProperty(0xb, VT_UNKNOWN, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetUserFilterIUnknown(LPUNKNOWN propVal)
|
||
|
{
|
||
|
SetProperty(0xb, VT_UNKNOWN, propVal);
|
||
|
}
|
||
|
CString GetUserFilterCLSID()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0xc, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetUserFilterCLSID(CString propVal)
|
||
|
{
|
||
|
SetProperty(0xc, VT_BSTR, propVal);
|
||
|
}
|
||
|
BOOL GetSyncUsingStreamOffset()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0xd, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetSyncUsingStreamOffset(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0xd, VT_BOOL, propVal);
|
||
|
}
|
||
|
float GetResizeCapture()
|
||
|
{
|
||
|
float result;
|
||
|
GetProperty(0xe, VT_R4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetResizeCapture(float propVal)
|
||
|
{
|
||
|
SetProperty(0xe, VT_R4, propVal);
|
||
|
}
|
||
|
long GetVideoRenderer()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0xf, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoRenderer(long propVal)
|
||
|
{
|
||
|
SetProperty(0xf, VT_I4, propVal);
|
||
|
}
|
||
|
long GetOverscan()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x10, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetOverscan(long propVal)
|
||
|
{
|
||
|
SetProperty(0x10, VT_I4, propVal);
|
||
|
}
|
||
|
CString GetWMAttributes()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x11, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetWMAttributes(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x11, VT_BSTR, propVal);
|
||
|
}
|
||
|
CString GetLocalAddress()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x12, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetLocalAddress(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x12, VT_BSTR, propVal);
|
||
|
}
|
||
|
BOOL GetEnableNewFrameEvent()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x13, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetEnableNewFrameEvent(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x13, VT_BOOL, propVal);
|
||
|
}
|
||
|
BOOL GetUseOverlay()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x14, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetUseOverlay(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x14, VT_BOOL, propVal);
|
||
|
}
|
||
|
CString GetUserFilter2CLSID()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x15, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetUserFilter2CLSID(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x15, VT_BSTR, propVal);
|
||
|
}
|
||
|
CString GetUserFilter3CLSID()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x16, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetUserFilter3CLSID(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x16, VT_BSTR, propVal);
|
||
|
}
|
||
|
CString GetCapFilename()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x17, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetCapFilename(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x17, VT_BSTR, propVal);
|
||
|
}
|
||
|
BOOL GetCaptureAudio()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x18, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetCaptureAudio(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x18, VT_BOOL, propVal);
|
||
|
}
|
||
|
BOOL GetConnected()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x19, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetConnected(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x19, VT_BOOL, propVal);
|
||
|
}
|
||
|
BOOL GetPreview()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x1a, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetPreview(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x1a, VT_BOOL, propVal);
|
||
|
}
|
||
|
double GetCaptureRate()
|
||
|
{
|
||
|
double result;
|
||
|
GetProperty(0x1b, VT_R8, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetCaptureRate(double propVal)
|
||
|
{
|
||
|
SetProperty(0x1b, VT_R8, propVal);
|
||
|
}
|
||
|
BOOL GetPreviewScale()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x1c, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetPreviewScale(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x1c, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetVideoDeviceIndex()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x1d, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoDeviceIndex(long propVal)
|
||
|
{
|
||
|
SetProperty(0x1d, VT_I4, propVal);
|
||
|
}
|
||
|
long GetAudioDeviceIndex()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x1e, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAudioDeviceIndex(long propVal)
|
||
|
{
|
||
|
SetProperty(0x1e, VT_I4, propVal);
|
||
|
}
|
||
|
BOOL GetServerMode()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x1f, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetServerMode(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x1f, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetServerPort()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x20, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetServerPort(long propVal)
|
||
|
{
|
||
|
SetProperty(0x20, VT_I4, propVal);
|
||
|
}
|
||
|
long GetVideoCodecIndex()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x21, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoCodecIndex(long propVal)
|
||
|
{
|
||
|
SetProperty(0x21, VT_I4, propVal);
|
||
|
}
|
||
|
long GetAudioCodecIndex()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x22, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAudioCodecIndex(long propVal)
|
||
|
{
|
||
|
SetProperty(0x22, VT_I4, propVal);
|
||
|
}
|
||
|
long GetMousePointer()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x23, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetMousePointer(long propVal)
|
||
|
{
|
||
|
SetProperty(0x23, VT_I4, propVal);
|
||
|
}
|
||
|
BOOL GetOverlay()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x24, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetOverlay(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x24, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetAudioInputIndex()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x25, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetAudioInputIndex(long propVal)
|
||
|
{
|
||
|
SetProperty(0x25, VT_I4, propVal);
|
||
|
}
|
||
|
BOOL GetPreviewFullScreen()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x26, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetPreviewFullScreen(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x26, VT_BOOL, propVal);
|
||
|
}
|
||
|
BOOL GetPreviewAudio()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x27, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetPreviewAudio(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x27, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetUseVideoFilter()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x28, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetUseVideoFilter(long propVal)
|
||
|
{
|
||
|
SetProperty(0x28, VT_I4, propVal);
|
||
|
}
|
||
|
long GetColorFormat()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x29, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetColorFormat(long propVal)
|
||
|
{
|
||
|
SetProperty(0x29, VT_I4, propVal);
|
||
|
}
|
||
|
long GetServerTimeout()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x2a, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetServerTimeout(long propVal)
|
||
|
{
|
||
|
SetProperty(0x2a, VT_I4, propVal);
|
||
|
}
|
||
|
float GetResizeBroadcast()
|
||
|
{
|
||
|
float result;
|
||
|
GetProperty(0x2b, VT_R4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetResizeBroadcast(float propVal)
|
||
|
{
|
||
|
SetProperty(0x2b, VT_R4, propVal);
|
||
|
}
|
||
|
BOOL GetIsCapturing()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x2c, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetIsCapturing(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x2c, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetVideoWidth()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x2d, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoWidth(long propVal)
|
||
|
{
|
||
|
SetProperty(0x2d, VT_I4, propVal);
|
||
|
}
|
||
|
long GetVideoHeight()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x2e, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoHeight(long propVal)
|
||
|
{
|
||
|
SetProperty(0x2e, VT_I4, propVal);
|
||
|
}
|
||
|
BOOL GetHasOverlay()
|
||
|
{
|
||
|
BOOL result;
|
||
|
GetProperty(0x2f, VT_BOOL, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetHasOverlay(BOOL propVal)
|
||
|
{
|
||
|
SetProperty(0x2f, VT_BOOL, propVal);
|
||
|
}
|
||
|
long GetVideoFlip()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x30, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoFlip(long propVal)
|
||
|
{
|
||
|
SetProperty(0x30, VT_I4, propVal);
|
||
|
}
|
||
|
long GetWMTVersion()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x31, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetWMTVersion(long propVal)
|
||
|
{
|
||
|
SetProperty(0x31, VT_I4, propVal);
|
||
|
}
|
||
|
CString GetVersion()
|
||
|
{
|
||
|
CString result;
|
||
|
GetProperty(0x32, VT_BSTR, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVersion(CString propVal)
|
||
|
{
|
||
|
SetProperty(0x32, VT_BSTR, propVal);
|
||
|
}
|
||
|
CPicture GetMouseIcon()
|
||
|
{
|
||
|
LPDISPATCH result;
|
||
|
GetProperty(0x33, VT_DISPATCH, (void*)&result);
|
||
|
return CPicture(result);
|
||
|
}
|
||
|
void SetMouseIcon(LPDISPATCH propVal)
|
||
|
{
|
||
|
SetProperty(0x33, VT_DISPATCH, propVal);
|
||
|
}
|
||
|
long GetVideoRotateAngle()
|
||
|
{
|
||
|
long result;
|
||
|
GetProperty(0x34, VT_I4, (void*)&result);
|
||
|
return result;
|
||
|
}
|
||
|
void SetVideoRotateAngle(long propVal)
|
||
|
{
|
||
|
SetProperty(0x34, VT_I4, propVal);
|
||
|
}
|
||
|
|
||
|
|
||
|
};
|