C
cocw
Unregistered / Unconfirmed
GUEST, unregistred user!
C++的DLL接口单元
// Rye.h: interface for the CRye class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RYE_H__00A7DDD1_0192_4B68_B9C2_8DDC9A8DC614__INCLUDED_)
#define AFX_RYE_H__00A7DDD1_0192_4B68_B9C2_8DDC9A8DC614__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CRyeDll
{
public:
CRyeDll();
virtual ~CRyeDll();
public:
virtual long InitControl() = 0;
virtual long GetPropCameraCount( LPLONG lpCamCount ) = 0;
virtual long GetPropConnectCamera(long nCamNo, LPTSTR lpszCameraName ) = 0;
virtual long Connect(long nCamNo) = 0;
virtual long DisConnect(long nCamNo) = 0;
virtual long Capture(long nCamNo) = 0;
virtual long GetPropRemainCount(long nCamNo, LPLONG lpRemCount ) = 0;
virtual long GetPropPicCount(long nCamNo, LPLONG lpPicCount ) = 0;
virtual long SetPropCurrentPicture(long nCamNo, long nPicNo ) = 0;
virtual long GetPropPicSize(long nCamNo, LPLONG lpPicSize ) = 0;
virtual long GetPicture(long nCamNo, long nBufferSize, LPVOID lpszPictureBuffer ) = 0;
virtual long EraseLast(long nCamNo) = 0;
virtual long GetPropCameraID(long nCamNo, LPTSTR lpszCamId ) = 0;
virtual long SetPropCameraID(long nCamNo, LPCTSTR lpszCamId ) = 0;
virtual long GetPropOpticalZoom(long nCamNo, LPLONG lpZoomLength ) = 0;
virtual long SetPropOpticalZoom(long nCamNo, long nZoomLength ) = 0;
virtual long GetPropFocusMode(long nCamNo, LPLONG lpFocusMode ) = 0;
virtual long SetPropFocusMode(long nCamNo, long nFocusMode ) = 0;
virtual long GetPropFlash(long nCamNo, LPLONG lpFlash ) = 0;
virtual long SetPropFlash(long nCamNo, long nFlash ) = 0;
virtual long GetPropResolution(long nCamNo, LPLONG lpResolution ) = 0;
virtual long SetPropResolution(long nCamNo, long nResolution ) = 0;
virtual long GetPropWhiteBalance(long nCamNo, LPLONG lpWhiteBalance ) = 0;
virtual long SetPropWhiteBalance(long nCamNo, long nWhiteBalance ) = 0;
virtual long GetPropExpoBias(long nCamNo, LPLONG lpExpoBias ) = 0;
virtual long SetPropExpoBias(long nCamNo, long nExpoBias ) = 0;
virtual long GetPropMetering(long nCamNo, LPLONG lpMetering ) = 0;
virtual long SetPropMetering(long nCamNo, long nMetering ) = 0;
virtual long GetPropIsoSpeed(long nCamNo, LPLONG lpIsoSpeed ) = 0;
virtual long SetPropIsoSpeed(long nCamNo, long nIsoSpeed ) = 0;
virtual long GetPropFocusPosition(long nCamNo, LPLONG lpFocusPos ) = 0;
virtual long SetPropFocusPosition(long nCamNo, long nFocusPos ) = 0;
virtual long GetPropIndexSize(long nCamNo, LPLONG lpIndexSize ) = 0;
virtual long GetPropFileName(long nCamNo, LPSTR lpszFileName ) = 0;
virtual long GetIndex(long nCamNo, long nBufferSize, LPVOID lpszPictureBuffer ) = 0;
virtual long GetPreview(long nCamNo, long nBufferSize, LPVOID lpszPictureBuffer ) = 0;
virtual long ErasePicture(long nCamNo) = 0;
virtual long EraseAll(long nCamNo) = 0;
virtual long Preview(long nCamNo) = 0;
virtual long SetLcdMode(long nCamNo, long nLcdMode ) = 0;
virtual long GetCaptureProp(long nCamNo, LPCAPTURE_MODE lpCaptureMode ) = 0;
virtual long SetCaptureProp(long nCamNo, LPCAPTURE_MODE lpCaptureMode ) = 0;
virtual long GetCameraProp(long nCamNo, LPCAMERA_PROPERTY lpCamProp ) = 0;
virtual long GetPictureProp(long nCamNo, LPPICTURE_PROPERTY lpPicProp ) = 0;
virtual long GetPicTagProp(long nCamNo, LPPIC_TAG_PROPERTY lpPicTagProp ) = 0;
virtual long GetExposureProp(long nCamNo, LPEXPOSURE_MODE lpExpoProp ) = 0;
virtual long SetExposureProp(long nCamNo, LPEXPOSURE_MODE lpExpoProp ) = 0;
virtual long CardFormat(long nCamNo) = 0;
virtual long SetPropElectricZoom(long nCamNo, long nElectricZoom ) = 0;
virtual long GetPropElectricZoom(long nCamNo, LPLONG lpElectricZoom ) = 0;
virtual long SetCustomValue(long nCamNo, LPRYE_CUSTOM_MODE lpCustomValue ) = 0;
virtual long GetCustomValue(long nCamNo, LPRYE_CUSTOM_MODE lpCustomValue) = 0;
virtual long GetFolderProp(long nCamNo, LPFOLDER_PROPERTY lpFolderProp) = 0;
virtual long GetPropFolderCount(long nCamNo, LPLONG lpFolderCount) = 0;
virtual long GetPropFolderName(long nCamNo, LPSTR lpszFolderName) = 0;
virtual long GetPropFreeMemory(long nCamNo, LPLONG lpFreeMemory ) = 0;
virtual long GetPropLed(long nCamNo, LPLONG lpLed) = 0;
virtual long SetPropLed(long nCamNo, long nNewValue) = 0;
virtual long GetPropLCDBrightness(long nCamNo, LPLONG lpBrightness) = 0;
virtual long SetPropLCDBrightness(long nCamNo, long nNewValue) = 0;
virtual long GetPropCameraTime(long nCamNo, LPLONG lpCameraTime ) = 0;
virtual long GetMemoryProp(long nCamNo, LPMEMORY_CARD_INFO lpCardInfo ) = 0;
virtual long GetPropBattery(long nCamNo, LPLONG lpBatteryStatus ) = 0;
virtual long GetPropPowerSaveCamera(long nCamNo, LPLONG lpSaveTime ) = 0;
virtual long SetPropPowerSaveCamera(long nCamNo, long nNewValue ) = 0;
virtual long GetPropPowerSaveHost(long nCamNo, LPLONG lpSaveTime ) = 0;
virtual long SetPropPowerSaveHost(long nCamNo, long nNewValue ) = 0;
virtual long GetPropPowerSaveLCD(long nCamNo, LPLONG lpSaveTime ) = 0;
virtual long SetPropPowerSaveLCD(long nCamNo, long nNewValue ) = 0;
virtual long GetPropTimeFormat(long nCamNo, LPLONG lpTimeFormat ) = 0;
virtual long SetPropCameraTime(long nCamNo, long nCamTime) = 0;
virtual long SetPropTimeFormat(long nCamNo, long nFormat ) = 0;
virtual long UploadPicture(long nCamNo, long nPicSize, LPVOID pBuffer) = 0;
virtual long SetPropCancel(long nCamNo, BOOL bNewValue = FALSE) = 0;
virtual long SetPropFolderNo(long nCamNo, long nFolderNo) = 0;
virtual long SetPropProtect(long nCamNo, BOOL bNewValue) = 0;//[2002-8-23] long -> bool
virtual long GetPropProtect(long nCamNo, LPBOOL lpProtect) = 0;
virtual long SetPropFolderName(long nCamNo, LPCTSTR lpszFolderName) = 0;
virtual long Release(long nCamNo,long nReleaseType) = 0;
};
#endif // !defined(AFX_RYE_H__00A7DDD1_0192_4B68_B9C2_8DDC9A8DC614__INCLUDED_)
// Rye.h: interface for the CRye class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RYE_H__00A7DDD1_0192_4B68_B9C2_8DDC9A8DC614__INCLUDED_)
#define AFX_RYE_H__00A7DDD1_0192_4B68_B9C2_8DDC9A8DC614__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CRyeDll
{
public:
CRyeDll();
virtual ~CRyeDll();
public:
virtual long InitControl() = 0;
virtual long GetPropCameraCount( LPLONG lpCamCount ) = 0;
virtual long GetPropConnectCamera(long nCamNo, LPTSTR lpszCameraName ) = 0;
virtual long Connect(long nCamNo) = 0;
virtual long DisConnect(long nCamNo) = 0;
virtual long Capture(long nCamNo) = 0;
virtual long GetPropRemainCount(long nCamNo, LPLONG lpRemCount ) = 0;
virtual long GetPropPicCount(long nCamNo, LPLONG lpPicCount ) = 0;
virtual long SetPropCurrentPicture(long nCamNo, long nPicNo ) = 0;
virtual long GetPropPicSize(long nCamNo, LPLONG lpPicSize ) = 0;
virtual long GetPicture(long nCamNo, long nBufferSize, LPVOID lpszPictureBuffer ) = 0;
virtual long EraseLast(long nCamNo) = 0;
virtual long GetPropCameraID(long nCamNo, LPTSTR lpszCamId ) = 0;
virtual long SetPropCameraID(long nCamNo, LPCTSTR lpszCamId ) = 0;
virtual long GetPropOpticalZoom(long nCamNo, LPLONG lpZoomLength ) = 0;
virtual long SetPropOpticalZoom(long nCamNo, long nZoomLength ) = 0;
virtual long GetPropFocusMode(long nCamNo, LPLONG lpFocusMode ) = 0;
virtual long SetPropFocusMode(long nCamNo, long nFocusMode ) = 0;
virtual long GetPropFlash(long nCamNo, LPLONG lpFlash ) = 0;
virtual long SetPropFlash(long nCamNo, long nFlash ) = 0;
virtual long GetPropResolution(long nCamNo, LPLONG lpResolution ) = 0;
virtual long SetPropResolution(long nCamNo, long nResolution ) = 0;
virtual long GetPropWhiteBalance(long nCamNo, LPLONG lpWhiteBalance ) = 0;
virtual long SetPropWhiteBalance(long nCamNo, long nWhiteBalance ) = 0;
virtual long GetPropExpoBias(long nCamNo, LPLONG lpExpoBias ) = 0;
virtual long SetPropExpoBias(long nCamNo, long nExpoBias ) = 0;
virtual long GetPropMetering(long nCamNo, LPLONG lpMetering ) = 0;
virtual long SetPropMetering(long nCamNo, long nMetering ) = 0;
virtual long GetPropIsoSpeed(long nCamNo, LPLONG lpIsoSpeed ) = 0;
virtual long SetPropIsoSpeed(long nCamNo, long nIsoSpeed ) = 0;
virtual long GetPropFocusPosition(long nCamNo, LPLONG lpFocusPos ) = 0;
virtual long SetPropFocusPosition(long nCamNo, long nFocusPos ) = 0;
virtual long GetPropIndexSize(long nCamNo, LPLONG lpIndexSize ) = 0;
virtual long GetPropFileName(long nCamNo, LPSTR lpszFileName ) = 0;
virtual long GetIndex(long nCamNo, long nBufferSize, LPVOID lpszPictureBuffer ) = 0;
virtual long GetPreview(long nCamNo, long nBufferSize, LPVOID lpszPictureBuffer ) = 0;
virtual long ErasePicture(long nCamNo) = 0;
virtual long EraseAll(long nCamNo) = 0;
virtual long Preview(long nCamNo) = 0;
virtual long SetLcdMode(long nCamNo, long nLcdMode ) = 0;
virtual long GetCaptureProp(long nCamNo, LPCAPTURE_MODE lpCaptureMode ) = 0;
virtual long SetCaptureProp(long nCamNo, LPCAPTURE_MODE lpCaptureMode ) = 0;
virtual long GetCameraProp(long nCamNo, LPCAMERA_PROPERTY lpCamProp ) = 0;
virtual long GetPictureProp(long nCamNo, LPPICTURE_PROPERTY lpPicProp ) = 0;
virtual long GetPicTagProp(long nCamNo, LPPIC_TAG_PROPERTY lpPicTagProp ) = 0;
virtual long GetExposureProp(long nCamNo, LPEXPOSURE_MODE lpExpoProp ) = 0;
virtual long SetExposureProp(long nCamNo, LPEXPOSURE_MODE lpExpoProp ) = 0;
virtual long CardFormat(long nCamNo) = 0;
virtual long SetPropElectricZoom(long nCamNo, long nElectricZoom ) = 0;
virtual long GetPropElectricZoom(long nCamNo, LPLONG lpElectricZoom ) = 0;
virtual long SetCustomValue(long nCamNo, LPRYE_CUSTOM_MODE lpCustomValue ) = 0;
virtual long GetCustomValue(long nCamNo, LPRYE_CUSTOM_MODE lpCustomValue) = 0;
virtual long GetFolderProp(long nCamNo, LPFOLDER_PROPERTY lpFolderProp) = 0;
virtual long GetPropFolderCount(long nCamNo, LPLONG lpFolderCount) = 0;
virtual long GetPropFolderName(long nCamNo, LPSTR lpszFolderName) = 0;
virtual long GetPropFreeMemory(long nCamNo, LPLONG lpFreeMemory ) = 0;
virtual long GetPropLed(long nCamNo, LPLONG lpLed) = 0;
virtual long SetPropLed(long nCamNo, long nNewValue) = 0;
virtual long GetPropLCDBrightness(long nCamNo, LPLONG lpBrightness) = 0;
virtual long SetPropLCDBrightness(long nCamNo, long nNewValue) = 0;
virtual long GetPropCameraTime(long nCamNo, LPLONG lpCameraTime ) = 0;
virtual long GetMemoryProp(long nCamNo, LPMEMORY_CARD_INFO lpCardInfo ) = 0;
virtual long GetPropBattery(long nCamNo, LPLONG lpBatteryStatus ) = 0;
virtual long GetPropPowerSaveCamera(long nCamNo, LPLONG lpSaveTime ) = 0;
virtual long SetPropPowerSaveCamera(long nCamNo, long nNewValue ) = 0;
virtual long GetPropPowerSaveHost(long nCamNo, LPLONG lpSaveTime ) = 0;
virtual long SetPropPowerSaveHost(long nCamNo, long nNewValue ) = 0;
virtual long GetPropPowerSaveLCD(long nCamNo, LPLONG lpSaveTime ) = 0;
virtual long SetPropPowerSaveLCD(long nCamNo, long nNewValue ) = 0;
virtual long GetPropTimeFormat(long nCamNo, LPLONG lpTimeFormat ) = 0;
virtual long SetPropCameraTime(long nCamNo, long nCamTime) = 0;
virtual long SetPropTimeFormat(long nCamNo, long nFormat ) = 0;
virtual long UploadPicture(long nCamNo, long nPicSize, LPVOID pBuffer) = 0;
virtual long SetPropCancel(long nCamNo, BOOL bNewValue = FALSE) = 0;
virtual long SetPropFolderNo(long nCamNo, long nFolderNo) = 0;
virtual long SetPropProtect(long nCamNo, BOOL bNewValue) = 0;//[2002-8-23] long -> bool
virtual long GetPropProtect(long nCamNo, LPBOOL lpProtect) = 0;
virtual long SetPropFolderName(long nCamNo, LPCTSTR lpszFolderName) = 0;
virtual long Release(long nCamNo,long nReleaseType) = 0;
};
#endif // !defined(AFX_RYE_H__00A7DDD1_0192_4B68_B9C2_8DDC9A8DC614__INCLUDED_)