TransportDestroy

Destroys a transport instance.

Syntax

PULSE_STATUS TransportDestroy(
 [in] PPS_TRANSPORT pTransport
);

Parameters

PPS_TRANSPORT pTransport

An opaque handle to a transport created by the TransportCreate function.

Return value

If the function succeeds, the return value is PULSE_STATUS_SUCCESS.

If it fails, it returns one of the PULSE_STATUS values. Possible return codes include, but are not limited to, the following:

PULSE_STATUS_INVALID_PARAMETER
0xC0000010
pTransport argument is NULL.

Remarks

If the transport has already been assigned to a debug engine, it is recommended to stop the engine using the EngStop function if it was running. Then, detach it from the engine by either calling the EngAssignTransport function with a different transport or destroying the engine with the EngDestroyEngine function.