📄 mocha.tli
字号:
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (043872c3).
//
// Mocha.tli
//
// Wrapper implementations for Win32 type library Mocha.tlb
// compiler-generated file created 03/01/04 at 10:13:35 - DO NOT EDIT!
#pragma once
//
// dispinterface _IMochaEvents wrapper method implementations
//
inline HRESULT _IMochaEvents::Progress ( long lnCamNo, long lnValue ) {
HRESULT _result;
_com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0003", lnCamNo, lnValue);
return _result;
}
inline HRESULT _IMochaEvents::TransferEvent ( long camNo, long objectHandle, long headerSize, long imageSize, long formatCode, long result ) {
HRESULT _result;
_com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0003\x0003\x0003\x0003\x0003", camNo, objectHandle, headerSize, imageSize, formatCode, result);
return _result;
}
inline HRESULT _IMochaEvents::ChangePropEvent ( long camNo, long propCode ) {
HRESULT _result;
_com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003\x0003", camNo, propCode);
return _result;
}
inline HRESULT _IMochaEvents::CancelCompleteEvent ( long camNo ) {
HRESULT _result;
_com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
L"\x0003", camNo);
return _result;
}
//
// interface IMocha wrapper method implementations
//
inline HRESULT IMocha::InitControl ( ) {
HRESULT _hr = raw_InitControl();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline long IMocha::GetCameraCount ( ) {
long _result;
HRESULT _hr = raw_GetCameraCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT IMocha::GetDeviceInfo ( long camNo, VARIANT * pDevInfo, long length ) {
HRESULT _hr = raw_GetDeviceInfo(camNo, pDevInfo, length);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline _bstr_t IMocha::GetCameraName ( long camNo ) {
BSTR _result;
HRESULT _hr = raw_GetCameraName(camNo, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
inline HRESULT IMocha::OpenSession ( long camNo ) {
HRESULT _hr = raw_OpenSession(camNo);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::CloseSession ( long camNo ) {
HRESULT _hr = raw_CloseSession(camNo);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::Discovery ( long camNo ) {
HRESULT _hr = raw_Discovery(camNo);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::SetCameraControlMode ( long camNo, long ctrlMode ) {
HRESULT _hr = raw_SetCameraControlMode(camNo, ctrlMode);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::SendCmd ( long camNo, long opeCode, const _variant_t & pramValue, VARIANT * pRespValue, VARIANT * pBuf, long bufSize ) {
HRESULT _hr = raw_SendCmd(camNo, opeCode, pramValue, pRespValue, pBuf, bufSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::Capture ( long lnCamNo, long lnMode ) {
HRESULT _hr = raw_Capture(lnCamNo, lnMode);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::GetImage ( long camNo, long objectHandle, VARIANT * pBuf, long bufSize, long offset ) {
HRESULT _hr = raw_GetImage(camNo, objectHandle, pBuf, bufSize, offset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::GetCapability ( long camNo, VARIANT * pBuf, long bufSize ) {
HRESULT _hr = raw_GetCapability(camNo, pBuf, bufSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::GetImageHeader ( long camNo, long objectHandle, VARIANT * pBuf, long bufSize ) {
HRESULT _hr = raw_GetImageHeader(camNo, objectHandle, pBuf, bufSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT IMocha::GetDescData ( long descType, const _variant_t & descData, VARIANT * pBuf, long bufSize ) {
HRESULT _hr = raw_GetDescData(descType, descData, pBuf, bufSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -