9400 .NET Programming
3.6 TRIGGER
GetTriggerState
Purpose
To get the current state of the trigger key.
Syntax
int GetTriggerState (ref byte triggerState);
Parameters
triggerState
[in][out] A byte variable that stores the information.
Example for C#
int b1 = 0;
byte triggerState = new byte();
b1 = Cipherlab.SystemAPI.Member.GetTriggerState(ref triggerState);
Example for VB
Dim triggerState As New Byte
Cipherlab.SystemAPI.Member.GetTriggerState(triggerState)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
See Also
SetTriggerLockOFF, SetTriggerLockON
146
Guide
0
Trigger key unlocked
1
Trigger key locked
Call GetErrorCode() to find the error condition encountered:
1
DeviceIOControl Error
2
CreateFile Error
(System default)
Need help?
Do you have a question about the 9400 Series and is the answer not in the manual?