L_BarCodeAAMVAIDFirstName

Summary

Gets the cardholder's first name.

Syntax

#include "ltbar.h"

L_LTBAR_API L_INT L_BarCodeAAMVAIDFirstName(pId, pszFirstName, bInferredFromFullName)

Parameters

const AAMVAID * pId

Pointer to the AAMVAID from which the first name will be retrieved.

L_CHAR ** pszFirstName

Pointer to a character string to be updated with the cardholder's first name.

L_BOOL * bInferredFromFullName

Pointer a variable to be updated with the value indicating whether the first name was inferred from a full name data element (typically DAA), or taken from a first name only data element (typically DAC).
Results inferred from the DAA element are less reliable.
Possible values are:

Value Meaning
L_TRUE The first name was inferred from a full name data element (typically DAA).
L_FALSE The first name was taken from a first name only data element (typically DAC).

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Card issuing authorities are using older AAMVA CDS versions that is using the DAA data element to encode full names.

The CDS, at the time, did not clearly define a formatting standard for this data element. Therefore, state DMVs improvised and ended up using varying formatting. Examples:

L_BarCodeAAMVAIDFirstName will retrieve the cardholder's first name from the DAA data element's value, only if a DAA data element is available in all of the AAMVAID's subfiles. The bInferredFromFullName will be L_TRUE in these cases.

Due to uncertainty in DMV formatting along with individuals with mononyms, multiple surnames (Spanish naming customs), and multiple given names, the resulting name is not guaranteed to be accurate in all cases, but only when inferring from the full name, the resulting name is only a best guess.

For IDs conforming to newer versions of the AAMVA CDS, this function will provide preference to the newer and more reliable first name data elements, and bInferredFromFullName will be set to L_FALSE. In these cases, the resulting name is guaranteed to be accurate.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_BarCodeParseAAMVAData

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Barcode C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.