Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Called by the Windows Biometric Framework to get a set of post-capture calibration data from the engine adapter.
PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN PibioEngineQueryCalibrationDataFn;
HRESULT PibioEngineQueryCalibrationDataFn(
[in, out] PWINBIO_PIPELINE Pipeline,
[out] PBOOLEAN DiscardAndRepeatCapture,
[out] PUCHAR CalibrationBuffer,
[out] PSIZE_T CalibrationBufferSize,
[in] SIZE_T MaxBufferSize
)
{...}
[in, out] Pipeline
Pointer to the WINBIO_PIPELINE structure associated with the biometric unit performing the operation.
[out] DiscardAndRepeatCapture
Address of a Boolean value that must be set by the EngineAdapterQueryCalibrationData method. This value indicates what the biometric service should do with the current sample after calibration is complete.
[out] CalibrationBuffer
Address of an empty buffer where the method is expected to write its calibration data. The memory holding this buffer belongs to the biometric service, and the Engine Adapter must not keep any pointers to this buffer once the EngineAdapterQueryCalibrationData method returns.
[out] CalibrationBufferSize
Address of a variable where the EngineAdapterQueryCalibrationData method will store the size (in bytes) of the calibration data it has written to CalibrationBuffer. This value must not exceed MaxBufferSize.
If EngineAdapterQueryCalibrationData sets this value to zero, the contents of the CalibrationBuffer will be discarded without sending them to the Sensor Adapter. This is not an error condition; it simply indicates that the Engine Adapter doesn’t need to update the sensor’s calibration based on the current capture data.
[in] MaxBufferSize
A value indicating the maximum space (in bytes) available to the Engine Adapter in the CalibrationBuffer.
If the function succeeds, it returns S_OK. If the function fails, it must return one of the following HRESULT values to indicate the error.
Return code | Description |
---|---|
|
Any error code will cause the Biometric Service to discontinue the dynamic calibration loop and abort the capture operation. |
The EngineAdapterQueryCalibrationData method can independently control the biometric service’s repeat-capture behavior and the calibration behavior by setting DiscardAndRepeatCapture and CalibrationBufferSize, respectively.
Desired Behavior | DiscardAndRepeatCapture | CalibrationBufferSize |
---|---|---|
Repeat capture after calibration. | TRUE | Non-zero |
Repeat capture without calibration. | TRUE | Zero |
Continue processing the sample after calibration. | FALSE | Non-zero |
Continue processing the sample without calibration. | FALSE | Zero |
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | winbio_adapter.h (include Winbio_adapter.h) |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today