>What kind of object does ObReferenceObjectByHandle on a socket give me?
I'm not very familiar with sockets or Windows sockets, but...
"A socket handle can optionally be a file handle in Windows Sockets 2. It is
possible to use socket handles with ReadFile, WriteFile, ReadFileEx,
WriteFileEx, DuplicateHandle, and other Win32 functions. Not all transport
service providers support this option. For an application to run over the
widest possible number of service providers, it should not assume that
socket handles are file handles."
"Socket Data Type
A new data type, SOCKET, has been defined. This is needed because a Windows
Sockets application cannot assume that socket descriptors are equivalent to
file descriptors as they are in UNIX."
so it sounds like if a SOCKET is a handle at all, it is a handle to a
FILE_OBJECT. How widely valid is this assumption? For at least TCP/IP
sockets on Win9x and NT4+?