ePass1000 C/C++ API Reference Manual Version 2.0

# epas_CloseDevice

The epas_CloseDevice function closes the session between application and device which has been opened with the epas_OpenDevice functions. When epas_CloseDevice is invoked, application releases exclusive ownership of the device.

    EPAS_STATUS EPAS_API
    epas_CloseDevice(
        EPAS_HANDLE hContextHandle    // [in]
    );

#### Requirement

epas_CreateContext, epas_OpenDevice

#### Parameters

hContextHandle
  [in] Handle to device context.

#### Remarks

This function does not reset Security State of the token. To reset the Security State, use epas_ResetSecurityState.

#### Return Values

If the function succeeds, FT_SUCCESS returned.

For a list of all return codes, see Status Return Values.

#### Sample Code

    EPAS_STATUS epsRet;
    EPAS_HANDLE handle;
    .
    .
    .
    epsRet = epas_CloseDevice(handle);.
    .
    .
    .

#### See Also

epas_OpenDevice