Almost complete skeleton for tdi.sys,

yet headers are still missing.

svn path=/trunk/; revision=805
This commit is contained in:
Emanuele Aliberti 1999-11-28 07:59:29 +00:00
parent e2e5efb9d7
commit b72dc46819
3 changed files with 191 additions and 18 deletions

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.3 1999/11/24 23:06:24 ea Exp $
# $Id: Makefile,v 1.4 1999/11/28 07:59:28 ea Exp $
#
# TDI.SYS build spec
#
@ -8,7 +8,7 @@ TARGETNAME=tdi
BASE_CFLAGS = -I../../../include
OBJECTS_CTE = cte/stubs.o cte/string.o
OBJECTS_TDI = tdi/stubs.o tdi/obsolete.o tdi/handler.o
OBJECTS_TDI = tdi/stubs.o tdi/obsolete.o tdi/handler.o tdi/dereg.o
OBJECTS_MISC = misc/main.o misc/$(TARGETNAME).coff

View file

@ -0,0 +1,170 @@
/* $Id: dereg.c,v 1.1 1999/11/28 07:59:29 ea Exp $
*
*/
#include <ntos.h>
/* De-/Register Action IDs for TdiDeRegister */
typedef
enum
{
R_NOTIFICATION_HANDLER = 0,
D_NOTIFICATION_HANDLER,
R_DEVICE_OBJECT,
D_DEVICE_OBJECT,
R_ADDRESS_CHANGE_HANDLER,
D_ADDRESS_CHANGE_HANDLER,
R_NET_ADDRESS,
D_NET_ADDRESS
} TDI_OBJECT_ACTION;
static
NTSTATUS
STDCALL
TdiDeRegister (
IN TDI_OBJECT_ACTION Action,
IN OUT PVOID Object
)
{
return STATUS_NOT_IMPLEMENTED;
}
/* ADDRESS_CHANGE_HANDLER */
NTSTATUS
STDCALL
TdiRegisterAddressChangeHandler (
DWORD Unknown0,
DWORD Unknown1,
DWORD Unknown2,
)
{
NTSTATUS Status = STATUS_SUCCESS;
#if 0
Status = TdiDeRegister (
R_ADDRESS_CHANGE_HANDLER,
AddressChangeHandler
);
#endif
return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS
STDCALL
TdiDeregisterAddressChangeHandler (
IN PVOID AddressChangeHandler
)
{
return TdiDeRegister (
D_ADDRESS_CHANGE_HANDLER,
AddressChangeHandler
);
}
/* DEVICE_OBJECT */
NTSTATUS
STDCALL
TdiRegisterDeviceObject (
DWORD Unknown0,
DWORD Unknown1
)
{
NTSTATUS Status = STATUS_SUCCESS;
#if 0
Status = TdiDeRegister (
R_DEVICE_OBJECT,
DeviceObject
);
#endif
return = STATUS_NOT_IMPLEMENTED;
}
NTSTATUS
STDCALL
TdiDeregisterDeviceObject (
IN PVOID DeviceObject
)
{
return TdiDeRegister (
D_DEVICE_OBJECT,
DeviceObject
);
}
/* NET_ADDRESS */
NTSTATUS
STDCALL
TdiRegisterNetAddress (
DWORD Unknown0,
DWORD Unknown1
)
{
NTSTATUS Status = STATUS_SUCCESS;
#if 0
Status = TdiDeRegister (
R_NET_ADDRESS,
NetAddress
);
#endif
return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS
STDCALL
TdiDeregisterNetAddress (
IN PVOID NetAddress
)
{
return TdiDeRegister (
D_NET_ADDRESS,
NetAddress
);
}
/* NOTIFICATION_HANDLER */
NTSTATUS
STDCALL
TdiRegisterNotificationHandler (
DWORD Unknown0,
DWORD Unknown1,
DWORD Unknown2
)
{
NTSTATUS Status = STATUS_SUCCESS;
#if 0
Status = TdiDeRegister (
R_NOTIFICATION_HANDLER,
NotificationHandler
);
#endif
return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS
STDCALL
TdiDeregisterNotificationHandler (
IN PVOID NotificationHandler
)
{
return TdiDeRegister (
DT_NOTIFICATION_HANDLER,
NotificationHandler
);
}
/* EOF */

View file

@ -1,4 +1,4 @@
/* $Id: stubs.c,v 1.2 1999/11/21 23:48:14 ea Exp $
/* $Id: stubs.c,v 1.3 1999/11/28 07:59:29 ea Exp $
*
*/
#include <ntos.h>
@ -56,15 +56,14 @@ TdiCopyMdlToBuffer (
}
VOID
STDCALL
TdiInitialize (
PVOID Unknown0
)
{
}
/*
TdiDeregisterAddressChangeHandler
TdiDeregisterDeviceObject
TdiDeregisterNetAddress
TdiDeregisterNotificationHandler
TdiInitialize
*/
NTSTATUS
STDCALL
@ -78,13 +77,17 @@ TdiMapUserRequest (
}
/*
TdiOpenNetbiosAddress
TdiRegisterAddressChangeHandler
TdiRegisterDeviceObject
TdiRegisterNetAddress
TdiRegisterNotificationHandler
*/
VOID
STDCALL
TdiOpenNetbiosAddress (
DWORD Unknown0,
DWORD Unknown1,
DWORD Unknown2,
DWORD Unknown3
)
{
}
VOID
STDCALL