Kr Abhi

Hi,

I am working on SDK. I'm developing port moniter. But I'm not able to get Handle of Serial COM port. That port is allready used by other application. Actully i want to capture the Data from that port. please tell me is it possible or not.if yes! How please help me

Thanks!




Re: Windows SDK Handle of serial COM port.

Paul Marriott

If using win32, you would use CreateFile to open a handle to a COM port, and ReadFile to read data from the port.

If another app has the port open you will NOT be able to open it again for monitoring in another app.





Re: Windows SDK Handle of serial COM port.

Kr Abhi

Thanks for reply !

But i got some application from net that is port moniter. that can able to monitering data from running port. I'm opening port in my program and sending data . and that application connect that port and also capture the data. i don't know this application developed on which language. if it is possible than why it not possible in SDK. in which laguage it possible can you tell me and how we can .

Thanks!






Re: Windows SDK Handle of serial COM port.

Michael Kümmling

Maybe the description of Portmon gives you an idea...




Re: Windows SDK Handle of serial COM port.

Paul Marriott

This is done through a vxd service hook.

Portmon will show data that is coming in and out from a port, although portmon must be set to look at the port before your app opens it.