windows-nt/Source/XPSP1/NT/drivers/wdm/bda/ipsink/inc/link.h

52 lines
868 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/////////////////////////////////////////////////////////////////////////
//
//
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
);