• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • Last Modified:

WSOCK32 API intercept

Is it possible to hook WSOCK32 API calls, in a pre-emptive
Windows 95 environment ?
If the answer is Yes, could I get a (minimal) sample of source code on how to do this ?
Note: The article on PROCHOOK in MSJ(Jan94) does
only work in a 16-bit environment.
0
andre_c
Asked:
andre_c
  • 2
1 Solution
 
andre_cAuthor Commented:
Edited text of question
0
 
tflaiCommented:
This is a tough one.  Currently I'm aware of maybe only two approaches:
1.  There is a  program called MPATH. It is what Quake used to access window's winsock features.  I don't know much about it.  And probably the only source to contact is the company of Quake.
2.  I've done a VxD that grabs MSTCP VxD's entry table.  The functions here are at one level lower than WSOCK32, but you do have access to all TCP and UDP controls.  You just don't have that nice socket interface.
0
 
andre_cAuthor Commented:
Adjusted points to 200
0
 
jhanceCommented:
The September 1997 issue of Microsoft System Journal in Matt Pietrek's "Under the Hood" column addresses just this issue.

See http://www.microsoft.com/msj/0997/hood0997.htm
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now