CARDCancel

C Specification

#include <revolution/card.h>

s32 CARDCancel(CARDFileInfo* fileInfo);

Arguments

fileInfo File info for the file that will have its processing canceled.

Return Values

One of the following codes:

CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_CANCELED
CARD_RESULT_READY

Description

Cancels the currently processing CARDRead, CARDReadAsync, CARDWrite or CARDWriteAsync functions. If the current processing is cancelled successfully, the function returns CARD_RESULT_CANCELED. If no read/write processes are currently being performed on the file specified by fileInfo, the function returns another one of the result codes.

The result code of the canceled read/write processes is also CARD_RESULT_CANCELED. The canceled CARDRead or CARDWrite functions return CARD_RESULT_CANCELED. The canceled asynchronous processes terminate normally, and call the callback function (if needed) with the result code CARD_RESULT_CANCELED.

For canceled processes, the CARDGetResultCode function also returns CARD_RESULT_CANCELED.

See Also

CARDGetResultCode
CARDRead
CARDReadAsync
CARDWrite
CARDWriteAsync

Revision History

2006/03/01 Initial version.


CONFIDENTIAL