00001
00002
00003
00004
00005
00006
00007 #include <olectl.h>
00008 #include <idispids.h>
00009
00010 import "ocidl.idl";
00011 import "oaidl.idl";
00012
00013 [ uuid(C1F70F97-6D36-4435-AA7A-4D7B3E9B2F06), version(1.1),
00014 helpfile("ePad.hlp"),
00015 helpstring("ePad ActiveX Control module"),
00016 control ]
00017 library ePadLib
00018 {
00019 importlib(STDOLE_TLB);
00020
00021
00022
00023 [ uuid(FC037F69-CEEE-4EF7-AC7B-9AA795C8ABED),
00024 helpstring("Dispatch interface for ePadID Control")]
00025 dispinterface _DePad
00026 {
00027 properties:
00028 [id(22), helpstring("property iDefaultDeviceNum")] LONG iDefaultDeviceNum;
00029 methods:
00030 [id(1), helpstring("method OpenConnection")] LONG OpenConnection(LONG lDevNum);
00031 [id(2), helpstring("method CloseConnection")] void CloseConnection(void);
00032 [id(3), helpstring("method GetNumDevices")] LONG GetNumDevices(void);
00033 [id(4), helpstring("method SetDebugParam")] void SetDebugParam(BSTR* pKey, BSTR* pValue);
00034 [id(5), helpstring("method GetDebugParam")] BSTR GetDebugParam(BSTR* pKey);
00035 [id(6), helpstring("method ConnGetSerialNumber")] BSTR ConnGetSerialNumber(void);
00036 [id(7), helpstring("method ConnGetDataRangeMinX")] LONG ConnGetDataRangeMinX(void);
00037 [id(8), helpstring("method ConnGetDataRangeMinY")] LONG ConnGetDataRangeMinY(void);
00038 [id(9), helpstring("method ConnGetDataRangeMinZ")] LONG ConnGetDataRangeMinZ(void);
00039 [id(10), helpstring("method ConnGetDataRangeMaxX")] LONG ConnGetDataRangeMaxX(void);
00040 [id(11), helpstring("method ConnGetDataRangeMaxY")] LONG ConnGetDataRangeMaxY(void);
00041 [id(12), helpstring("method ConnGetDataRangeMaxZ")] LONG ConnGetDataRangeMaxZ(void);
00042 [id(13), helpstring("method ConnGetPhysicalX")] DOUBLE ConnGetPhysicalX(void);
00043 [id(14), helpstring("method ConnGetPhysicalY")] DOUBLE ConnGetPhysicalY(void);
00044 [id(15), helpstring("method ResetData")] void ResetData(void);
00045 [id(16), helpstring("method SetData")] LONG SetData(VARIANT* pBinaryData);
00046 [id(17), helpstring("method GetData")] VARIANT GetData(void);
00047 [id(18), helpstring("method StartCapture")] LONG StartCapture(void);
00048 [id(19), helpstring("method StopCapture")] LONG StopCapture(void);
00049 [id(20), helpstring("method GetNumDataItems")] LONG GetNumDataItems(void);
00050 [id(21), helpstring("method GetPictureDispatch")] IPictureDisp* GetPictureDispatch(void);
00051 [id(23), helpstring("method ConnReadEEPROM")] LONG ConnReadEEPROM(LONG addr, BYTE *pBValue);
00052 [id(24), helpstring("method ConnWriteEEPROM")] LONG ConnWriteEEPROM(LONG addr, BYTE bValue);
00053 [id(25), helpstring("method ConnGetLED")] LONG ConnGetLED(void);
00054 [id(26), helpstring("method ConnSetLED")] void ConnSetLED(LONG bState);
00055 [id(27), helpstring("method ConnGetFPPowerState")] LONG ConnGetFPPowerState(void);
00056 [id(28), helpstring("method ConnSetFPPowerState")] void ConnSetFPPowerState(LONG fState);
00057 [id(29), helpstring("method SetMark")] VARIANT_BOOL SetMark(VARIANT_BOOL bShowMark);
00058 [id(30), helpstring("method SetImageSize")] LONG SetImageSize(LONG width, LONG height);
00059 [id(31), helpstring("method GetImageWidth")] LONG GetImageWidth(void);
00060 [id(32), helpstring("method GetImageHeight")] LONG GetImageHeight(void);
00061 [id(33), helpstring("method SetTextData")] LONG SetTextData(BSTR* pTextData);
00062 };
00063
00064
00065
00066 [ uuid(5D881D66-BD4C-4E56-B92D-594DBE014DD0),
00067 helpstring("Event interface for ePadID Control") ]
00068 dispinterface _DePadEvents
00069 {
00070 properties:
00071
00072
00073 methods:
00074 };
00075
00076
00077
00078 [ uuid(74B7E9D0-049A-4157-82B0-7E8A2FDE0922),
00079 helpstring("ePadID Control"), control ]
00080 coclass ePad
00081 {
00082 [default] dispinterface _DePad;
00083 [default, source] dispinterface _DePadEvents;
00084 };
00085
00086 };