Вот билбиотека SmScaleDIGIEthernet.dll
а вот её интерфейс загрузки
Код:
[
uuid(373EB01A-0918-11D3-8649-0080AD509959),
helpstring("ISmScale Interface")
]
interface ISmScale: IUnknown
{
[
helpstring("Start load scales")
]
HRESULT _stdcall LoadScales([in] int aScaleCount, [in] int * aScales );
[
helpstring("Get progress and state of scales load process")
]
HRESULT _stdcall GetProgress([out] int * aPercent, [out] BSTR * aOperation, [out] tagEScaleState * aState /*Warning: unable to validate structure name: */ );
[
helpstring("Abort loading")
]
HRESULT _stdcall Abort( void );
[
helpstring("Get current scale state")
]
HRESULT _stdcall GetScaleState([in] int aScale, [out] tagEScaleState * aState /*Warning: unable to validate structure name: */, [out] BSTR * aError );
[
helpstring("Get title of parameters load scales page")
]
HRESULT _stdcall GetParamLoadPage([out] BSTR * aTitle );
[
helpstring("Show parameters page of load scales")
]
HRESULT _stdcall ShowParamLoadPage([in] wireHWND aTabCtrl /*Warning: unable to validate structure name: */, [in] wireHWND aDlg /*Warning: unable to validate structure name: */ );
[
helpstring("Store Params in load scales page")
]
HRESULT _stdcall StoreParams( void );
};