PIBIO_ENGINE_REFRESH_CACHE_FN callback function (winbio_adapter.h)
Called by the Windows Biometric Framework to notify the Engine Adapter that it should discard any cached templates that it may be keeping in memory.
Syntax
PIBIO_ENGINE_REFRESH_CACHE_FN PibioEngineRefreshCacheFn;
HRESULT PibioEngineRefreshCacheFn(
[in, out] PWINBIO_PIPELINE Pipeline
)
{...}
Parameters
[in, out] Pipeline
Pointer to the WINBIO_PIPELINE structure associated with the biometric unit performing the operation.
Return value
The function will return one of the following HRESULT values.
Return code | Description |
---|---|
|
The Pipeline parameter cannot be NULL. |
|
This value is returned in all other cases. |
Remarks
An Engine Adapter that maintains a private in-memory cache of templates (e.g., for performance reasons) should discard the contents of its cache when it receives this method call. The call indicates that the cache contents are no longer valid. Depending on the Engine Adapter’s cache policy, the adapter may also choose to reload its cache at this time from the template database.
The biometric service calls this method in the following situations:
- Once, when the StorageAdapterAttach routine has successfully opened its connection to the template database.
-
Again, after performing any operation that changes the state of the template database.
- Adding a new template to the database.
- Deleting one or more existing templates from the database.
Requirements
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) |