The port has been opened by third-party serial application before your program calls Attach method.
| Visual Basic | Sub OnOpenBeforeAttach(pid As Long, Path As String)
|
|---|---|
| Visual C++ (MFC) | void OnOpenBeforeAttach(long pid, LPCTSTR Path);
|
pid
PID of the application opened the port.
Path
Full path to the application opened the port.