An application may specify the number of digits in the PIN from 4 to 9 (10 digits could exceed 32 bits). Only the correct number of digit boxes will be on the PIN popup. Or, the application could allow the user an optional number of digits, from 4 to 9. In this case there will 9 digits boxes, on the popup window. The user leaves any extra boxes at the right blank.
The application can require dual PIN entry in some cases. Then the PIN popup will have 2 rows of PIN digit boxes. Enter the same PIN in both rows. An example would be creating a new PIN. Dual entry helps user avoid a "typo", and not knowing the "real" PIN that was created.
Supplied for use as buttons in the calling application.
DECLARE FUNCTION PIN_Enter LIB "EnterPIN.dll" ALIAS "PIN_Enter" _
(BYVAL hParent AS DWORD, _
BYVAL DuplPIN AS LONG, _
BYVAL NumOfDigits AS LONG) AS DWORD
DECLARE FUNCTION PIN_Enter (BYVAL hParent AS DWORD, _
BYVAL DuplPIN AS LONG, _
BYVAL NumOfDigits AS LONG) AS DWORD
IMPORT PIN_Enter, "EnterPIN.dll" TO function_pointer, lib_handle
DECLARE FUNCTION LoadLibrary LIB "Kernel32.dll" ALIAS "LoadLibraryW" _
(lpLibFileName AS WSTRINGZ) AS DWORD
DECLARE FUNCTION GetProcAddress LIB "Kernel32.dll" ALIAS "GetProcAddress" _
(BYVAL hModule AS DWORD, lpProcName AS ASCIIZ) AS LONG
CALL DWORD function_pointer USING PIN_Enter (hParent, DuplPIN, NumOfDigits TO Result
Created on 26 April 2026, correction 27 April 2024.
This page, including contents, copyright © 2026, Dale Yarker.