Share via


SDCancelBusRequest (Compact 2013)

3/26/2014

This function cancels a queued bus request as generated by SDBusRequest.

Syntax

BOOLEAN SDCancelBusRequest(
  PSD_BUS_REQUEST pRequest
);

Parameters

  • pRequest
    [in, out] Pointer to an SD_BUS_REQUEST structure to be cancelled.

Return Value

Returns a BOOLEAN return value that indicates whether or not the request has been successfully cancelled.

Remarks

If cancellation of the request was successful, the Status field of the SD_BUS_REQUEST structure will be set to SD_API_STATUS_CANCELED.

A driver must wait for the request to complete with a cancelled status. When a bus request is completed, its completion callback will be invoked. Only in the completion callback is it safe to free the bus request.

Requirements

Header

sdcardddk.h

Library

sdcardlib.lib

See Also

Reference

Secure Digital (SD) Card Driver Functions
SDBusRequest
SD_BUS_REQUEST