You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
919 B
51 lines
919 B
/////////////////////////////////////////////////////////////////////////
|
|
//
|
|
//
|
|
typedef struct _LINK_
|
|
{
|
|
KSPIN_LOCK spinLock;
|
|
PDEVICE_OBJECT pDeviceObject;
|
|
PFILE_OBJECT pFileObject;
|
|
USHORT flags;
|
|
} LINK, *PLINK;
|
|
|
|
|
|
#define LINK_ESTABLISHED 0x00000001
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
//
|
|
//
|
|
NTSTATUS
|
|
CreateDevice (
|
|
PDRIVER_OBJECT DriverObject,
|
|
PUNICODE_STRING DeviceName,
|
|
PUNICODE_STRING SymbolicName,
|
|
ULONG ulcbDeviceExtension,
|
|
PDEVICE_OBJECT pDeviceObject
|
|
);
|
|
|
|
VOID
|
|
CloseLink (
|
|
PLINK pLink
|
|
);
|
|
|
|
PLINK
|
|
OpenLink (
|
|
PLINK pLink,
|
|
UNICODE_STRING DriverName
|
|
);
|
|
|
|
NTSTATUS
|
|
SendIOCTL (
|
|
PLINK pLink,
|
|
ULONG ulIoctl,
|
|
PVOID pData,
|
|
ULONG ulcbData
|
|
);
|
|
|
|
NTSTATUS
|
|
CreateWaitForNdisThread (
|
|
PVOID pContext
|
|
);
|
|
|