VAL - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-wiamicro-val)

VAL structure

Description

The VAL structure is used by the microdriver and WIA Flatbed driver to pass information between each other.

Members

lVal

Specifies a command value to return to the WIA Flatbed driver. See WIA Microdriver Commands for a list of available commands for this parameter.

dblVal

Specifies a command value to return to the WIA Flatbed driver. See WIA Microdriver Commands for a list of available commands for this parameter.

pGuid

Points to the GUID of the pressed button. If no button was pressed, this member points to GUID_NULL.

pScanInfo

Points to a SCANINFO structure.

handle

Points to a ShutDown event handle that will be signaled by the WIA Flatbed Driver when the driver is being unloaded or shut down.

ppButtonNames

Specifies the address of a pointer to an array of button names.

pHandle

Points to an event handle.

lReserved

Reserved. Do not use.

szVal

Specifies 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.