次の方法で共有


STORE_ExecuteCommand (Compact 2013)

3/26/2014

This function executes a mass storage command.

Syntax

DWORD STORE_ExecuteCommand(
  PTRANSPORT_COMMAND ptcCommand,
  PTRANSPORT_DATA ptdData
);

Parameters

  • ptcCommand
    [in] Target command.
  • ptdData
    [in] Data associated with the command. May be NULL.

Return Value

The following table shows the return values for this function.

Return value

Description

EXECUTE_PASS

Returned if the command is supported and executed successfully.

EXECUTE_FAIL

Might return EXECUTE_FAIL if the data block is greater than or equal to DATASIZE_INQUIRY. Other failures depend on the command.

EXECUTE_ERROR

Returned if the command is not supported.

Remarks

See the switch statement in this function for the commands that are supported by default. The function implementation is in %_PUBLICROOT%\Common\OAK\Drivers\USBFN\Class\Storage\Emulation\SCSI2\Block\Block.cpp.

Requirements

Header

proxy.h

See Also

Reference

USB Function Mass Storage Client Driver Functions