// wiadef.h
typedef struct _WIA_PATCH_CODES {
DWORD Tag;
DWORD Version;
DWORD Size;
DWORD Count;
WIA_PATCH_CODE_INFO PatchCodes[1];
} WIA_PATCH_CODES;
View the official Windows Driver Kit DDI referenceNo description available.
The WIA_PATCH_CODES structure stores header information for the patch code metadata report of one scan job (one call to IWiaMiniDrv::drvAcquireItemData).
TagMust be the literal 'WBAT', 4 single byte ASCII characters.
VersionMust be the value 0x00010000 (Version 1.0).
SizeThe complete size of this WIA_PATCH_CODES header structure, in bytes, including the complete size of the WIA_PATCH_CODES_INFO list.
CountSpecifies the number of WIA_PATCH_CODES_INFO elements in the PatchCodes sequence.
PatchCodesPlaceholder for a sequence of Count contiguous WIA_PATCH_CODES_INFO structures.
The header must be followed by a sequence of patch code information structures, one for each detected patch code, in the order the patch codes were found and decoded.