04-09-2013, 10:30 PM
شكرا اخي ناجي
تم تنفيذ التابع بنجاح واطلب تفسيرك إذا كان بالامكان للتابعين التاليين ضمن نفس المكتبة وشكرا:
التابع الأول SNAPI_SnapShot:
التابع الآخر :
في التابع الثاني كيفية معرفة ماهي قيمه المتغير
تم تنفيذ التابع بنجاح واطلب تفسيرك إذا كان بالامكان للتابعين التاليين ضمن نفس المكتبة وشكرا:
التابع الأول SNAPI_SnapShot:
PHP كود :
SNAPI_SnapShot Host to Scanner Command
If the scanner supports imaging, this sends a command to the scanner to enter Image Capture Mode. The
scanner remains in Image Capture Mode until the trigger is pulled (physically or with a call to
SNAPI_PullTrigger) and an image is captured, or until the timeout for a trigger pull expires. The scanner then
returns to Decode Mode.
If the trigger is pulled, the image data is sent to the DLL. WM_XFERSTATUS is sent to the host application with
information about the size of the image.
When the first transfer status message is received, the host application should provide a destination buffer for
the image by calling SNAPI_SetImageBuffer. After the entire image is transferred from the scanner to the DLL,
the application receives a Windows message indicating that the image data was stored.
Syntax
SNAPIDLL_API int __stdcall SNAPI_SnapShot(
HANDLE DeviceHandle);
Parameters
DeviceHandle
Handle of the device used in the call to SNAPI_Connect.
التابع الآخر :
PHP كود :
SNAPI_GetSerialNumber Data Request Command
This command returns the serial number of the connected scanner. No command is sent to scanner.
Syntax
SNAPIDLL_API int __stdcall SNAPI_GetSerialNumber(
HANDLE DeviceHandle,
unsigned char *SerialNo);
Parameters
DeviceHandle
Handle of the device used in the call to SNAPI_Connect.
SerialNo
Pointer to a buffer to receive serial number of connected scanner.
في التابع الثاني كيفية معرفة ماهي قيمه المتغير

