Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

TDI endpoint from socket handle?

OSR_Community_UserOSR_Community_User Member Posts: 110,217
I have a user mode application and a device driver, and I would like my
device driver to perform some portion of the network I/O from within the
kernel using TDI.

Is it possible for a kernel driver to obtain the TDI endpoint used by a
WINSOCK socket handle? I can create an IOCTL in my driver and have the
user mode application pass in the handle to the socket. Is there any way
to dereference this handle and get a pointer to a TDI connection point?

Thanks tons in advance!

Rob

---------------------------------------------------------------------
Rob Newberry
Director of Fajita Technology
Group Logic, Inc.

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Hi,
    Try out ObReferenceObjectByHandle.
    Gurpreet Singh

    --- Rob Newberry <[email protected]> wrote:
    >
    > I have a user mode application and a device driver,
    > and I would like my
    > device driver to perform some portion of the network
    > I/O from within the
    > kernel using TDI.
    >
    > Is it possible for a kernel driver to obtain the TDI
    > endpoint used by a
    > WINSOCK socket handle? I can create an IOCTL in my
    > driver and have the
    > user mode application pass in the handle to the
    > socket. Is there any way
    > to dereference this handle and get a pointer to a
    > TDI connection point?
    >
    > Thanks tons in advance!
    >
    > Rob
    >
    >
    ---------------------------------------------------------------------
    > Rob Newberry
    > Director of Fajita Technology
    > Group Logic, Inc.
    >
    >
    >
    > ---
    > You are currently subscribed to ntfsd as:
    > [email protected]
    > To unsubscribe send a blank email to
    > $subst('Email.Unsub')
    >
    >
    __________________________________________________
    Do You Yahoo!?
    Talk to your friends online with Yahoo! Messenger.
    http://im.yahoo.com
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    What kind of object does ObReferenceObjectByHandle on a socket give me?

    > Hi,
    > Try out ObReferenceObjectByHandle.
    > Gurpreet Singh
    >
    > --- Rob Newberry <[email protected]> wrote:
    > >
    > > I have a user mode application and a device driver,
    > > and I would like my
    > > device driver to perform some portion of the network
    > > I/O from within the
    > > kernel using TDI.
    > >
    > > Is it possible for a kernel driver to obtain the TDI
    > > endpoint used by a
    > > WINSOCK socket handle? I can create an IOCTL in my
    > > driver and have the
    > > user mode application pass in the handle to the
    > > socket. Is there any way
    > > to dereference this handle and get a pointer to a
    > > TDI connection point?
    > >
    > > Thanks tons in advance!
    > >
    > > Rob
    > >
    > >
    > ---------------------------------------------------------------------
    > > Rob Newberry
    > > Director of Fajita Technology
    > > Group Logic, Inc.
    > >
    > >
    > >
    > > ---
    > > You are currently subscribed to ntfsd as:
    > > [email protected]
    > > To unsubscribe send a blank email to
    > > $subst('Email.Unsub')
    > >
    > >
    > __________________________________________________
    > Do You Yahoo!?
    > Talk to your friends online with Yahoo! Messenger.
    > http://im.yahoo.com
    >
    >
    >
    > ---
    >
    > END OF DIGEST
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >

    ---------------------------------------------------------------------
    Rob Newberry
    Director of Fajita Technology
    Group Logic, Inc.
  • FILE_OBJECT

    -----------------------------------------------------------------------
    Dave Cox
    Hewlett-Packard Co.
    ESBU/SSMO (Santa Barbara)


    -----Original Message-----
    From: Rob Newberry [mailto:[email protected]]
    Sent: Thursday, February 24, 2000 5:30 AM
    To: File Systems Developers Interest List
    Cc: Gurpreet Anand
    Subject: [ntfsd] Re: TDI endpoint from socket handle?



    What kind of object does ObReferenceObjectByHandle on a socket give me?

    > Hi,
    > Try out ObReferenceObjectByHandle.
    > Gurpreet Singh
    >
    > --- Rob Newberry <[email protected]> wrote:
    > >
    > > I have a user mode application and a device driver,
    > > and I would like my
    > > device driver to perform some portion of the network
    > > I/O from within the
    > > kernel using TDI.
    > >
    > > Is it possible for a kernel driver to obtain the TDI
    > > endpoint used by a
    > > WINSOCK socket handle? I can create an IOCTL in my
    > > driver and have the
    > > user mode application pass in the handle to the
    > > socket. Is there any way
    > > to dereference this handle and get a pointer to a
    > > TDI connection point?
    > >
    > > Thanks tons in advance!
    > >
    > > Rob
    > >
    > >
    > ---------------------------------------------------------------------
    > > Rob Newberry
    > > Director of Fajita Technology
    > > Group Logic, Inc.
    > >
    > >
    > >
    > > ---
    > > You are currently subscribed to ntfsd as:
    > > [email protected]
    > > To unsubscribe send a blank email to
    > > $subst('Email.Unsub')
    > >
    > >
    > __________________________________________________
    > Do You Yahoo!?
    > Talk to your friends online with Yahoo! Messenger.
    > http://im.yahoo.com
    >
    >
    >
    > ---
    >
    > END OF DIGEST
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >

    ---------------------------------------------------------------------
    Rob Newberry
    Director of Fajita Technology
    Group Logic, Inc.



    ---
    You are currently subscribed to ntfsd as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 20 Apr 2020 LIVE ONLINE
Writing WDF Drivers 11 May 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA