Click here to Skip to main content
15,885,058 members
Articles / Programming Languages / ASM

Driver Development Part 5: Introduction to the Transport Device Interface

Rate me:
Please Sign up or sign in to vote.
4.92/5 (72 votes)
27 Apr 200534 min read 313.9K   6.2K   334  
Introduction to TDI Client drivers and more IRP handling.
/**********************************************************************
 * 
 *  Toby Opferman
 *
 *  Driver Example
 *
 *  This example is for educational purposes only.  I license this source
 *  out for use in learning how to write a device driver.
 *
 *     Driver Shared Header File
 **********************************************************************/




#ifndef __TDIEXAMPLE_H__
#define __TDIEXAMPLE_H__

typedef unsigned int UINT;
typedef char * PCHAR;

/* #define __USE_DIRECT__ */
#define __USE_BUFFERED__

NTSTATUS TdiExample_Create(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_CleanUp(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_Close(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_IoControl(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_Write(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_Read(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_UnSupportedFunction(PDEVICE_OBJECT DeviceObject, PIRP Irp);
NTSTATUS TdiExample_IoControlInternal(PDEVICE_OBJECT DeviceObject, PIRP Irp);



#endif






By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer Intel
United States United States
Toby Opferman has worked in just about all aspects of Windows development including applications, services and drivers.

He has also played a variety of roles professionally on a wide range of projects. This has included pure researching roles, architect roles and developer roles. He also was also solely responsible for debugging traps and blue screens for a number of years.

Previously of Citrix Systems he is very experienced in the area of Terminal Services. He currently works on Operating Systems and low level architecture at Intel.

He has started a youtube channel called "Checksum Error" that focuses on software.
https://www.youtube.com/channel/UCMN9q8DbU0dnllWpVRvn7Cw

Comments and Discussions