Windows Desktop SDK
DeviceWrapper.cs
Go to the documentation of this file.
84 public delegate void LIBWFXEVENTCB(ENUM_LIBWFX_EVENT_CODE enEventCode, int nParam, IntPtr pUserDef);
98 public delegate void LIBWFXCB(ENUM_LIBWFX_NOTIFY_CODE enNotifyCode, IntPtr pUserDef, IntPtr pParam1, IntPtr pParam2);
109 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_Init", CallingConvention = CallingConvention.StdCall)]
121 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_DeInit", CallingConvention = CallingConvention.StdCall)]
134 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_GetDeviesList", CallingConvention = CallingConvention.StdCall)]
147 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_GetFileList", CallingConvention = CallingConvention.StdCall)]
160 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_RemoveFile", CallingConvention = CallingConvention.StdCall)]
175 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_SetProperty", CallingConvention = CallingConvention.StdCall)]
176 public static extern ENUM_LIBWFX_ERRCODE LibWFX_SetProperty(String szRequestCmdIn, [MarshalAs(UnmanagedType.FunctionPtr)] LIBWFXEVENTCB pfnLibWFXEVENTCBIn, IntPtr pUserDefIn);
189 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_StartScan", CallingConvention = CallingConvention.StdCall)]
190 public static extern ENUM_LIBWFX_ERRCODE LibWFX_StartScan([MarshalAs(UnmanagedType.FunctionPtr)] LIBWFXCB pfnLibWFXCBIn, IntPtr pUserDefIn);
201 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_Calibrate", CallingConvention = CallingConvention.StdCall)]
215 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_ECOControl", CallingConvention = CallingConvention.StdCall)]
227 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_PaperReady", CallingConvention = CallingConvention.StdCall)]
239 [DllImport(LIBWFX_DLLNAME, EntryPoint = "LibWFX_CloseDevice", CallingConvention = CallingConvention.StdCall)]
static ENUM_LIBWFX_ERRCODE LibWFX_StartScan([MarshalAs(UnmanagedType.FunctionPtr)] LIBWFXCB pfnLibWFXCBIn, IntPtr pUserDefIn)
To start do scan.
Definition: LibWebFXScan.h:71
Definition: LibWebFXScan.h:41
ENUM_LIBWFX_EXCEPTION_CODE
If the feedback of exception from LIBWFXCB callback function and ENUM_LIBWFX_NOTIFY_CODE is ENUM_LIBW...
Definition: DeviceWrapper.cs:50
ENUM_LIBWFX_NOTIFY_CODE
The feedback of notify from LIBWFXCB callback function after scanning.
Definition: DeviceWrapper.cs:60
delegate void LIBWFXEVENTCB(ENUM_LIBWFX_EVENT_CODE enEventCode, int nParam, IntPtr pUserDef)
The LIBWFXEVENTCB() type defines a pointer to this callback function. LibWFX_SetProperty() is a place...
static ENUM_LIBWFX_ERRCODE LibWFX_GetDeviesList(out IntPtr szDevicesListOut)
Get devices list.
Definition: LibWebFXScan.h:61
Definition: LibWebFXScan.h:45
Definition: LibWebFXScan.h:46
Definition: LibWebFXScan.h:59
Definition: LibWebFXScan.h:38
delegate void LIBWFXCB(ENUM_LIBWFX_NOTIFY_CODE enNotifyCode, IntPtr pUserDef, IntPtr pParam1, IntPtr pParam2)
The LIBWFXCB() type defines a pointer to this callback function. LibWFX_StartScan() is a placeholder ...
Definition: LibWebFXScan.h:42
Definition: LibWebFXScan.h:40
Definition: LibWebFXScan.h:56
Definition: LibWebFXScan.h:39
static ENUM_LIBWFX_ERRCODE LibWFX_DeInit()
Deinit the LibWebFXScan SDK .
Definition: LibWebFXScan.h:79
static ENUM_LIBWFX_ERRCODE LibWFX_CloseDevice()
To close device currently.
ENUM_LIBWFX_EVENT_CODE
The feedback of event from LIBWFXEVENTCB callback function.
Definition: DeviceWrapper.cs:37
static ENUM_LIBWFX_ERRCODE LibWFX_PaperReady()
To check whether the device feed the paper.
Definition: LibWebFXScan.h:69
Definition: LibWebFXScan.h:80
Definition: LibWebFXScan.h:43
static ENUM_LIBWFX_ERRCODE LibWFX_RemoveFile(String szFileNameIn)
Remove the specified file by filename, e.g. "IMG_1.jpg", "*"(delete all file)
Definition: LibWebFXScan.h:48
static ENUM_LIBWFX_ERRCODE LibWFX_GetFileList(out IntPtr szFileListOut)
Get the imagefile list, but no including tif and pdf.
Definition: LibWebFXScan.h:44
Definition: LibWebFXScan.h:47
Definition: LibWebFXScan.h:57
Definition: LibWebFXScan.h:70
The DeviceWrapper class is a C# wrapper layer of LibWebFXScan.
Definition: DeviceWrapper.cs:71
Definition: LibWebFXScan.h:60
Definition: LibWebFXScan.h:81
static ENUM_LIBWFX_ERRCODE LibWFX_ECOControl(out uint pulTime, int nSetIn)
To set or get ECO time.
Definition: LibWebFXScan.h:58
static ENUM_LIBWFX_ERRCODE LibWFX_SetProperty(String szRequestCmdIn, [MarshalAs(UnmanagedType.FunctionPtr)] LIBWFXEVENTCB pfnLibWFXEVENTCBIn, IntPtr pUserDefIn)
Set the property of SDK, LibWebFXScan must do LIBWFX_SETPROPERTY before LIBWFX_STARTSCAN.