Selects the interface by name. If successful, it can be assigned to a debug engine instance with the EngAssignTransport function.
PPS_TRANSPORT pTransport
An opaque handle to a transport created by the TransportCreate function.
char *lpcInterfaceName
Target interface name. It might be one from the enumerated names retrieved by the TransportGetInterfaceName function if enumeration is supported for a given transport type. It may also be any valid name in your system for a given transport type:
| Transport type | Example name |
|---|---|
| pttSerial1 | "\\.\COM1" |
| pttNet6 | "192.168.0.1:50100" |
| pttPipe9 | "\\.\pipe\named_pipe_1" |
| pttLocal10 | "vmcall" |
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_INSUFFICIENT_RESOURCES0xC0000002 | One of the memory allocations failed during initialization. |
| PULSE_STATUS_INVALID_PARAMETER0xC0000010 | Might happen if: |
| PULSE_STATUS_DEVICE_MISCONFIGURATION0xC0000306 | The serial interface cannot be properly configured. |
| PULSE_STATUS_DEVICE_INIT_FAILED0xC0000307 | Failed to initialize the pttXhci transport. On Windows, this happens if any WinUSB function fails. |
| PULSE_STATUS_TRANSPORT_INIT_FAILED0xC0000300 | Local debugging vmcall test failed. Check your PulseDbg Host settings. |
This function is useful in cases where interfaces cannot be enumerated, f.e. for the pttPipe transport, when you have to specify a pipe name.
Use this function to select an interface for the pttNet transport type. The format is "ip[:port]", f.e. "192.168.0.1:50123". If the port number is omitted, it will be set to the default value of 50100.
The only valid interface name for the pttLocal transport type is "vmcall".
You can also select the interface by enumerating available ones with the TransportEnumerateInterfaces function and then selecting one of them by index with the TransportSetInterfaceIndex function