Ivan
Fri Dec 29 12:25:49 CST 2006
That handle could be a reference to a kernel-object owned by AFD.sys,
that is the TDI client for winsock.
That handle could be created after the TDI_CONNECT gets completed.
At the end of the day it is not the business of TDI to know
how it's own clients represent the information they encapsulate,
and, time-wise, the user-mode handle can be created after TDI
has exited the picture.
What are you trying to accomplish ?
Write some kind of per-application firewall ?
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Arnool" <mr_sekoseko@yahoo.com> wrote in message
news:O%23GV9h2KHHA.4848@TK2MSFTNGP04.phx.gbl...
> in the user mode when you call socket function you got a handle
>
> SOCKET hSocket = socket(AF_INET, SOCK_STREAM, 0);
>
> how can i get this handle from TDI_CONNECT ?? ( as i want to send it back
> to monitoring application )
>
> thanks in advance
>
>