📄 packet_8h-source.html
字号:
<a name="l00426"></a>00426 IN OUT PDRIVER_OBJECT adriverObjectP,<a name="l00427"></a>00427 IN PUNICODE_STRING amacNameP<a name="l00428"></a>00428 );<a name="l00440"></a>00440 NTSTATUS<a name="l00441"></a>00441 <a class="code" href="group__NPF__code.html#g82e557625e52fe4395bbe2e494fe8c4a" title="Opens a new instance of the driver.">NPF_Open</a>(<a name="l00442"></a>00442 IN PDEVICE_OBJECT DeviceObject,<a name="l00443"></a>00443 IN PIRP Irp<a name="l00444"></a>00444 );<a name="l00445"></a>00445 <a name="l00455"></a>00455 VOID<a name="l00456"></a>00456 <a class="code" href="group__NPF__code.html#g155ae51be29c6d36f8109781b8f6e7b2" title="Ends the opening of an adapter.">NPF_OpenAdapterComplete</a>(<a name="l00457"></a>00457 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00458"></a>00458 IN NDIS_STATUS Status,<a name="l00459"></a>00459 IN NDIS_STATUS OpenErrorStatus<a name="l00460"></a>00460 );<a name="l00461"></a>00461 <a name="l00472"></a>00472 NTSTATUS<a name="l00473"></a>00473 <a class="code" href="group__NPF__code.html#gfae94a0e7fda8de180cff6e596cc2803" title="Closes an instance of the driver.">NPF_Cleanup</a>(<a name="l00474"></a>00474 IN PDEVICE_OBJECT DeviceObject,<a name="l00475"></a>00475 IN PIRP Irp<a name="l00476"></a>00476 );<a name="l00477"></a>00477 <a name="l00478"></a>00478 NTSTATUS<a name="l00479"></a>00479 <a class="code" href="group__NPF__code.html#gf8b70be389645c912cf09f1e9ea4b975">NPF_Close</a>(<a name="l00480"></a>00480 IN PDEVICE_OBJECT DeviceObject,<a name="l00481"></a>00481 IN PIRP Irp<a name="l00482"></a>00482 );<a name="l00483"></a>00483 <a name="l00484"></a>00484 <a name="l00485"></a>00485 <a name="l00494"></a>00494 VOID<a name="l00495"></a>00495 <a class="code" href="group__NPF__code.html#g300118a9a6cc28c2c880f6bb39d86b53" title="Ends the closing of an adapter.">NPF_CloseAdapterComplete</a>(<a name="l00496"></a>00496 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00497"></a>00497 IN NDIS_STATUS Status<a name="l00498"></a>00498 );<a name="l00499"></a>00499 <a name="l00522"></a>00522 NDIS_STATUS<a name="l00523"></a>00523 <a class="code" href="group__NPF__code.html#g92f84ced372baf09f1c00a6b252a0564" title="Callback invoked by NDIS when a packet arrives from the network.">NPF_tap</a>(<a name="l00524"></a>00524 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00525"></a>00525 IN NDIS_HANDLE MacReceiveContext,<a name="l00526"></a>00526 IN PVOID HeaderBuffer,<a name="l00527"></a>00527 IN UINT HeaderBufferSize,<a name="l00528"></a>00528 IN PVOID LookAheadBuffer,<a name="l00529"></a>00529 IN UINT LookaheadBufferSize,<a name="l00530"></a>00530 IN UINT PacketSize<a name="l00531"></a>00531 );<a name="l00532"></a>00532 <a name="l00543"></a>00543 VOID<a name="l00544"></a>00544 <a class="code" href="group__NPF__code.html#g0c34f931d6718be202c7c62406f279fd" title="Ends the transfer of a packet.">NPF_TransferDataComplete</a>(<a name="l00545"></a>00545 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00546"></a>00546 IN PNDIS_PACKET Packet,<a name="l00547"></a>00547 IN NDIS_STATUS Status,<a name="l00548"></a>00548 IN UINT BytesTransferred<a name="l00549"></a>00549 );<a name="l00550"></a>00550 <a name="l00557"></a>00557 VOID<a name="l00558"></a>00558 <a class="code" href="group__NPF__code.html#ge7863db01a628ed11324c49953195855" title="Callback function that signals the end of a packet reception.">NPF_ReceiveComplete</a>(IN NDIS_HANDLE ProtocolBindingContext);<a name="l00559"></a>00559 <a name="l00583"></a>00583 NTSTATUS<a name="l00584"></a>00584 <a class="code" href="group__NPF__code.html#gd8b208720b6e5149dabcd7fb058b16f7" title="Handles the IOCTL calls.">NPF_IoControl</a>(<a name="l00585"></a>00585 IN PDEVICE_OBJECT DeviceObject,<a name="l00586"></a>00586 IN PIRP Irp<a name="l00587"></a>00587 );<a name="l00588"></a>00588 <a name="l00589"></a>00589 VOID<a name="l00590"></a>00590 <a name="l00600"></a>00600 <a class="code" href="group__NPF__code.html#g4ff37c0fd3273f829a1f84b9ab40755b" title="Ends an OID request.">NPF_RequestComplete</a>(<a name="l00601"></a>00601 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00602"></a>00602 IN PNDIS_REQUEST pRequest,<a name="l00603"></a>00603 IN NDIS_STATUS Status<a name="l00604"></a>00604 );<a name="l00605"></a>00605 <a name="l00618"></a>00618 NTSTATUS<a name="l00619"></a>00619 <a class="code" href="group__NPF__code.html#g595338435296a4d1e15363ebfcb3a38c" title="Writes a raw packet to the network.">NPF_Write</a>(<a name="l00620"></a>00620 IN PDEVICE_OBJECT DeviceObject,<a name="l00621"></a>00621 IN PIRP Irp<a name="l00622"></a>00622 );<a name="l00623"></a>00623 <a name="l00624"></a>00624 <a name="l00644"></a>00644 INT <a class="code" href="group__NPF__code.html#g9a97dd25ae757da4bfed3723a4eb4bce" title="Writes a buffer of raw packets to the network.">NPF_BufferedWrite</a>(IN PIRP Irp, <a name="l00645"></a>00645 IN PCHAR UserBuff, <a name="l00646"></a>00646 IN ULONG UserBuffSize,<a name="l00647"></a>00647 BOOLEAN sync);<a name="l00648"></a>00648 <a name="l00656"></a>00656 VOID <a class="code" href="group__NPF__code.html#g8861b474efcb6578c9fe2075ff3e6aef" title="Waits the completion of all the sends performed by NPF_BufferedWrite.">NPF_WaitEndOfBufferedWrite</a>(POPEN_INSTANCE Open);<a name="l00657"></a>00657 <a name="l00667"></a>00667 VOID<a name="l00668"></a>00668 <a class="code" href="group__NPF__code.html#ged126572458eed2dcd18d1824ac86601" title="Ends a send operation.">NPF_SendComplete</a>(<a name="l00669"></a>00669 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00670"></a>00670 IN PNDIS_PACKET pPacket,<a name="l00671"></a>00671 IN NDIS_STATUS Status<a name="l00672"></a>00672 );<a name="l00673"></a>00673 <a name="l00683"></a>00683 VOID<a name="l00684"></a>00684 <a class="code" href="group__NPF__code.html#g4e7934d9adb1826ed5e9112b9182f74a" title="Ends a reset of the adapter.">NPF_ResetComplete</a>(<a name="l00685"></a>00685 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00686"></a>00686 IN NDIS_STATUS Status<a name="l00687"></a>00687 );<a name="l00688"></a>00688 <a name="l00692"></a>00692 VOID<a name="l00693"></a>00693 <a class="code" href="group__NPF__code.html#g1a8cf4fdeed6e93fcf1f50da654402b7" title="Callback for NDIS StatusHandler. Not used by NPF.">NPF_Status</a>(<a name="l00694"></a>00694 IN NDIS_HANDLE ProtocolBindingContext,<a name="l00695"></a>00695 IN NDIS_STATUS Status,<a name="l00696"></a>00696 IN PVOID StatusBuffer,<a name="l00697"></a>00697 IN UINT StatusBufferSize<a name="l00698"></a>00698 );<a name="l00699"></a>00699 <a name="l00700"></a>00700 <a name="l00704"></a>00704 VOID<a name="l00705"></a>00705 <a class="code" href="group__NPF__code.html#g70f97109adcd6de8b157534e5ecf2e56" title="Callback for NDIS StatusCompleteHandler. Not used by NPF.">NPF_StatusComplete</a>(IN NDIS_HANDLE ProtocolBindingContext);<a name="l00706"></a>00706
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -