Returns:
SR_SUCCESS
The operation completed successfully
SR_INVALID_ERR
The scanner was already initialized
SR_NOT_INITIALIZED
The Scanning library is not initialized
SR_INVALID_SCANNER_HANDLE
Scanner handle is not valid
SR_SCANNER_NOT_OPEN
Scanner is not open
8.26
S
CAN
G
ET
S
CANNER
R
EG
K
EY
()
Prototype:
SCANAPI_API SCAN_RESULT ScanGetScannerRegKey(HANDLE hScanner, BOOL activeKey, LPTSTR
lpBuff, LPINT BufSize);
Purpose
:
This returns a path to the key of the active device in order to extract parameters for that device
from the registry
Arguments
:
[in] hScanner is the value received by the client application in lParam of the WM_INSERTION
message specified when ScanInit() was called.
[in] activeKey
[in/out] lpBuff contains the registry key
[in/out] BufSize contains the size of the string (including terminating zero) in bytes
Returns
:
If activeKey is TRUE, the scanner's active key (\Drivers\Active\NN) key string will be returned,
otherwise it returns the driver key (\Drivers\PCMCIA\PnP ID\etc).
SR_INVALID_ERR
The scanner was already initialized
SR_NOT_INITIALIZED
The Scanning library is not initialized
SR_INVALID_SCANNER_HANDLE
Scanner handle is not valid
SR_SCANNER_NOT_OPEN
Scanner is not open
April 8, 2010
Page 52
Document#: 6410-00147 K
Revision 2.28