NPF_CloseBinding (IN POPEN_INSTANCE pOpen) NPF_StopUsingBinding (IN POPEN_INSTANCE pOpen) NPF_StartUsingBinding (IN POPEN_INSTANCE pOpen) NPF_CloseOpenInstance ( POPEN_INSTANCE pOpen) Writes a block of packets on the dump file.Ĭloses the dump file associated with an instance of the driver.
NPF_WriteDumpFile (PFILE_OBJECT FileObject, PLARGE_INTEGER Offset, ULONG Length, PMDL Mdl, PIO_STATUS_BLOCK IoStatusBlock) Saves the content of the packet buffer to the file associated with current instance. NPF_SaveCurrentBuffer ( POPEN_INSTANCE Open)
NPF_OpenDumpFile ( POPEN_INSTANCE Open, PUNICODE_STRING fileName, BOOLEAN append)Ĭreates the file that will receive the packets when the driver is in dump mode. NPF_UnbindAdapter (OUT PNDIS_STATUS Status, IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE UnbindContext) NPF_BindAdapter (OUT PNDIS_STATUS Status, IN NDIS_HANDLE BindContext, IN PNDIS_STRING DeviceName, IN PVOID SystemSpecific1, IN PVOID SystemSpecific2)Ĭallback for NDIS BindAdapterHandler. NPF_QueryRegistryRoutine (IN PWSTR ValueName, IN ULONG ValueType, IN PVOID ValueData, IN ULONG ValueLength, IN PVOID Context, IN PVOID Entr圜ontext)įunction used by NPF_ReadRegistry() to quesry the registry keys associated woth NPF if the driver is manually installed via the control panel. Reads the registry keys associated woth NPF if the driver is manually installed via the control panel. NPF_ReadRegistry (IN PWSTR *MacDriverName, IN PWSTR *PacketDriverName, IN PUNICODE_STRING RegistryPath) NPF_Read (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NPF_Unload (IN PDRIVER_OBJECT DriverObject)įunction called by the OS when NPF is unloaded. NPF_StatusComplete (IN NDIS_HANDLE ProtocolBindingContext)Ĭallback for NDIS StatusCompleteHandler. NPF_Status (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status, IN PVOID StatusBuffer, IN UINT StatusBufferSize)Ĭallback for NDIS StatusHandler. NPF_ResetComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status) NPF_SendComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET pPacket, IN NDIS_STATUS Status) Waits the completion of all the sends performed by NPF_BufferedWrite. NPF_WaitEndOfBufferedWrite ( POPEN_INSTANCE Open) Writes a buffer of raw packets to the network. NPF_BufferedWrite (IN PIRP Irp, IN PCHAR UserBuff, IN ULONG UserBuffSize, BOOLEAN sync) NPF_Write (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NPF_RequestComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_REQUEST pRequest, IN NDIS_STATUS Status) NPF_IoControl (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NPF_ReceiveComplete (IN NDIS_HANDLE ProtocolBindingContext)Ĭallback function that signals the end of a packet reception. NPF_TransferDataComplete (IN NDIS_HANDLE ProtocolBindingContext, IN PNDIS_PACKET Packet, IN NDIS_STATUS Status, IN UINT BytesTransferred) NPF_tap (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE MacReceiveContext, IN PVOID HeaderBuffer, IN UINT HeaderBufferSize, IN PVOID LookAheadBuffer, IN UINT LookaheadBufferSize, IN UINT PacketSize)Ĭallback invoked by NDIS when a packet arrives from the network. NPF_CloseAdapterComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status) NPF_Close (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NPF_Cleanup (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NPF_OpenAdapterComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status, IN NDIS_STATUS OpenErrorStatus) NPF_Open (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) NPF_CreateDevice (IN OUT PDRIVER_OBJECT adriverObjectP, IN PUNICODE_STRING amacNameP) Returns the list of the MACs available on the system. The initialization routine of the driver. DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)