CipherLab 9400 Series User Manual page 185

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

SetPINCode
Purpose
To provide the pre-defined SIM card PIN.
Syntax
int SetPINCode (string pinCode,
Parameters
pinCode
[in] A string variable that stores the pin code.
pinResult
[in][out] A byte variable that stores the result.
Example for C#
int b1 = 0;
byte result = 0;
string pin = string.Empty;
pin = "1234";
b1 = Cipherlab.SystemAPI.Member.SetPINCode(pin, ref result);
Example for VB
Dim result As Byte = 0
Dim pin As String = "1234"
Cipherlab.SystemAPI.Member.SetPINCode(pin, result)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
c
ref byte pinResult);
0
It fails to set the PIN code.
1
It succeeds in setting the PIN code.
Call GetErrorCode() to find the error condition encountered:
1
(CreateFile Fail; Device Occupied)
2
(Get Card Handle Fail)
Chapter 3
System API
177

Advertisement

Table of Contents
loading

Table of Contents