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

Home NTFSD

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


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. Sign in or register to get started.

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!
Internals & Software Drivers 15 November 2021 Live, Online
Writing WDF Drivers TBD Live, Online
Developing Minifilters 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online