General WIA Utility Functions

You can use the following functions to retrieve the driver item context, retrieve information from the system registry, and copy a string.

Function Description
wiauGetDrvItemContext Gets the driver item context and, optionally, the driver item.
wiauGetResourceString Gets a resource string, storing it as a BSTR.
wiauGetValidFormats Calls the IWiaMiniDrv::drvGetWiaFormatInfo method and makes a list of valid formats, using a specified TYMED value.
wiauPropInPropSpec Determines whether a specified property specification identifier (ID) is contained in an array of such values. The function optionally gets the index where the property specification ID was found.
wiauPropsInPropSpec Determines whether any of a list of property specification IDs is contained within an array of such values.
wiauRegGetDword Gets a DWORD value from the DeviceData section of the registry.
wiauRegGetStr Gets a string value from the DeviceData section of the registry.
wiauRegOpenData Opens the DeviceData registry key.
wiauSetImageItemSize Calculates the size and width, in bytes, for an image, based on the current WIA_IPA_FORMAT setting, and writes the new values to the appropriate properties.
wiauStrC2C Copies an ANSI character string to another ANSI character string.
wiauStrC2W Converts an ANSI character string to a Unicode string.
wiauStrW2C Converts a Unicode string to an ANSI character string.
wiauStrW2W Copies a Unicode string to another Unicode string.