I installed an ActiveX component, but all of its functions require you to know the OLE_HANDLE of the scanner, for example:
function ScannerAvailable(hWnd: OLE_HANDLE): WordBool;
function OpenScanner(hWnd: OLE_HANDLE): Integer;
function CloseScanner(hWnd: OLE_HANDLE): Integer;
The scanner is a USB scanner, how do I get its handle to start and stop scanning?