Hi folks,

is there a way to determine the owner of a serial port?
I would like to log the name of the application/service that opened a
serial port in case my service failes to open it. (How) can this be
done?
Any informations are appreciated.

Re: How to determine the owner of serial port? by Stuart

Stuart
Wed Apr 12 02:15:17 CDT 2006

internetsux@hotmail.com wrote:
> Hi folks,
>
> is there a way to determine the owner of a serial port?
> I would like to log the name of the application/service that opened a
> serial port in case my service failes to open it. (How) can this be
> done?
> Any informations are appreciated.
>

It seems as if this was not a problem under linux, but I can't find
anything about that for windows. I'd be very happy if I were able to
find out the owner of file locks, but it seems as if the Win32 API
doesn't support this kind of information :-(

Stuart

Re: How to determine the owner of serial port? by Stuart

Stuart
Tue Apr 18 03:07:41 CDT 2006

internetsux@hotmail.com wrote:
> Hi folks,
>
> is there a way to determine the owner of a serial port?
> I would like to log the name of the application/service that opened a
> serial port in case my service failes to open it. (How) can this be
> done?
> Any informations are appreciated.
>

It seems as if this was not a problem under linux, but I can't find
anything about that for windows. I'd be very happy if I were able to
find out the owner of file locks, but it seems as if the Win32 API
doesn't support this kind of information :-(

Stuart