Rattle
March 9th, 2001, 10:32
Hi,
I'm trying to reverse engineer a serial protocoll and I'm getting tired of using portmon for logging the traffic on the port. How can I hook up to the port in my own software (using vc++)?
/Rattle
tsehp
March 10th, 2001, 14:25
m$docs
The file input and output (I/O) functions (CreateFile, CloseHandle, ReadFile, ReadFileEx, WriteFile, and WriteFileEx) provide the basic interface for opening and closing a communications resource handle and for performing read and write operations. The Microsoft® Win32® application programming interface (API) also includes a set of communications functions that provide access to communications resources. This overview describes the use of file I/O and communications functions, which enable applications to perform the following tasks:
· Open a handle to a specified communications resource.
· Set and query the configuration of a serial communications resource.
· Read from or write to a serial communications resource.
· Monitor a specified set of events that might occur for a given serial communications resource.
· Send a control command to the device driver associated with a specified communications resource, causing the driver to execute an extended function.
So you can start a hook on those api's while your program starts, sure your c++ app will have to filter with the process that used those api's and the port you want to filter.
Rattle
March 11th, 2001, 09:14
This question should probably be in the beginners forum, but I really need a little more info on hooking in general to, if you could tell me where to read more about it would be nice
/Rattle
P.S At least now I know what calls to hook on

Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.