// wiamicro.h
typedef struct VAL {
LONG lVal;
double dblVal;
GUID *pGuid;
PSCANINFO pScanInfo;
HGLOBAL handle;
WCHAR **ppButtonNames;
HANDLE *pHandle;
LONG lReserved;
CHAR szVal[MAX_ANSI_CHAR];
} VAL, *PVAL;
View the official Windows Driver Kit DDI referenceNo description available.
The VAL structure is used by the microdriver and WIA Flatbed driver to pass information between each other.
lValSpecifies a command value to return to the WIA Flatbed driver. See WIA Microdriver Commands for a list of available commands for this parameter.
dblValSpecifies a command value to return to the WIA Flatbed driver. See WIA Microdriver Commands for a list of available commands for this parameter.
pGuidPoints to the GUID of the pressed button. If no button was pressed, this member points to GUID_NULL.
pScanInfoPoints to a SCANINFO structure.
handlePoints to a ShutDown event handle that will be signaled by the WIA Flatbed Driver when the driver is being unloaded or shut down.
ppButtonNamesSpecifies the address of a pointer to an array of button names.
pHandlePoints to an event handle.
lReservedReserved. Do not use.
szValSpecifies the device name in ASCII form. If needed for interrupt checking, the microdriver can use this name to pass to CreateFile in order to obtain a file handle to the device.