Keylock Class

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Usage

'Usage
Dim keylock1 As New Keylock()

Syntax

'Declaration
MustInherit Public Class Keylock
    Inherits PosCommon
public abstract class Keylock : PosCommon
public abstract ref class Keylock : public PosCommon
public abstract class Keylock extends PosCommon
public abstract class Keylock extends PosCommon

Remarks

Capabilities

The keylock has the following minimal set of capabilities:

  • Supports at least three keylock positions.

  • Supports reporting of keylock position changes, either by hardware or software detection.

Model

The keylock defines three keylock positions as constants. It is assumed that the keylock supports locked, normal, and supervisor positions. The constants for these keylock positions and their values are as follows:

  • PositionAny0

  • PositionLocked1

  • PositionNormal2

  • PositionSupervisor3

The KeyPosition property holds the value of the keylock position where the values range from one (1) to the total number of keylock positions contained in the PositionCount property.

Device Sharing

The keylock is sharable. Its device sharing rules are:

  • After opening and enabling the device, the application can access all properties and methods and will receive status update events.

  • If more than one application has opened and enabled the device, each of these applications can access its properties and methods. StatusUpdateEvent events are fired to all of these applications.

  • The keylock cannot be claimed for exclusive access. If an application calls ClaimDevice, the method always return Illegal.

Inheritance Hierarchy

System.Object
   Microsoft.PointOfService.PosDevice
     Microsoft.PointOfService.PosCommon
      Microsoft.PointOfService.Keylock
         Microsoft.PointOfService.BasicServiceObjects.KeylockBasic

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

Keylock Members
Microsoft.PointOfService Namespace