AcquireToClipboard

#include "BiTwain.h"

 

int CALLBACK AcquireToClipboard ()

Description

This function should be called to start scanning to the clipboard. This function will copy the scanned DIB to the clipboard. When scanning is finished the WM_BI_SCANNING_DOCUMENT_FINISHED message is sent. The lParam will  contain the pointer to the specified structure.

typedef struct tagstScanningDocumentFinished

{

            HANDLE hDib;

            LPCWSTR lpFileName;

 }stScanningDocumentFinished, *lpstScanningDocumentFinished;

 

hDib contains the handle of the DIB scanned. The lpFileName is NULL. The user should free the allocated memory for hDib.

Parameters

None

Return values

Return TW_OK on success or an error code on failure.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.