--- title: "AAL2DPXClose" slug: "a3s-cppprg-aal2dpxclose-4-0" updated: 2026-11-11T10:02:33Z published: 2026-11-11T10:02:33Z canonical: "docs.onespan.com/a3s-cppprg-aal2dpxclose-4-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # AAL2DPXClose ## Function prototype ```cpp aat_int32 AAL2DPXClose (TDPXHandle*   dpx_Handle); ``` ## Description This function closes the DPX import process described by dpx_Handle, as well as the DPX file. ## Parameters | Type | Name | Use | Description | | --- | --- | --- | --- | | TDPXHandle * | dpx_Handle | I | Pointer to the handle used during the DPX file import operation. | ## Return codes | Code | Meaning | Code | Meaning | | --- | --- | --- | --- | | 0 | Success | -1503 | Handle key is pointer null | | -21 | Error file close failed | -1504 | Invalid handle context eyecatcher | | -30 | Error fatal error | -1505 | Invalid handle key eyecatcher | | -1501 | Handle pointer is null | -1507 | Selected application pointer is null | | -1502 | Handle context is pointer null | | |