Jungo WinDriver  
Official Documentation

◆ WDC_CardCleanupSetup()

DWORD WDC_CardCleanupSetup ( _In_ WDC_DEVICE_HANDLE  hDev,
_In_ WD_TRANSFER pTransCmds,
_In_ DWORD  dwCmds,
_In_ BOOL  fForceCleanup 
)

Sets a list of transfer cleanup commands to be performed for the specified card on any of the following occasions:


Set card cleanup commands

  • The application exits normally but without closing the specified card.
  • If the bForceCleanup parameter is set to TRUE, the cleanup commands will also be performed when the specified card is closed.
Parameters
[in]hDevHandle to a WDC device, returned by WDC_xxxDeviceOpen()
[in]pTransCmdsPointer to an array of cleanup transfer commands to be performed.
[in]dwCmdsNumber of cleanup commands in the Cmd array.
[in]fForceCleanupIf FALSE: The cleanup transfer commands (Cmd) will be performed in either of the following cases: When the application exits abnormally. When the application exits normally without closing the card by calling one of the WDC_xxxDeviceClose() functions

If TRUE: The cleanup transfer commands will be performed both in the two cases described above, as well as in the following case: When the relevant WD_xxxDeviceClose() function is called for the card.

Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise