SetWiring sets custom signal lines wiring (pinout).
| BOOL SetWiring( | ||
| char *Port, | // name of the port | |
| void* Buffer, | // pointer to buffer | |
| long sizeBuffer | // size of buffer | |
| ); |
A null-terminated string that defines one of the two port names in a pair
A pointer to VSERIAL_WIRING structure
Size of Buffer parameter in bytes
Return values:
SetWiring returns TRUE if signal lines wiring was created successfully and FALSE otherwise
Code example:
Setting custom wiring (null modem scheme with partial handshaking)
VSERIAL_WIRING wiring; wiring.DTR = WIRED_TO_DSR | WIRED_TO_DCD; |