Go to the source code of this file.
|
NTSTATUS | VfEvtDeviceD0Entry (WDFDEVICE Device, WDF_POWER_DEVICE_STATE PreviousState) |
|
NTSTATUS | VfEvtDeviceD0EntryPostInterruptsEnabled (WDFDEVICE Device, WDF_POWER_DEVICE_STATE PreviousState) |
|
NTSTATUS | VfEvtDeviceD0Exit (WDFDEVICE Device, WDF_POWER_DEVICE_STATE TargetState) |
|
NTSTATUS | VfEvtDeviceD0ExitPreInterruptsDisabled (WDFDEVICE Device, WDF_POWER_DEVICE_STATE TargetState) |
|
NTSTATUS | VfEvtDevicePrepareHardware (WDFDEVICE Device, WDFCMRESLIST ResourcesRaw, WDFCMRESLIST ResourcesTranslated) |
|
NTSTATUS | VfEvtDeviceReleaseHardware (WDFDEVICE Device, WDFCMRESLIST ResourcesTranslated) |
|
VOID | VfEvtDeviceSelfManagedIoCleanup (WDFDEVICE Device) |
|
VOID | VfEvtDeviceSelfManagedIoFlush (WDFDEVICE Device) |
|
NTSTATUS | VfEvtDeviceSelfManagedIoInit (WDFDEVICE Device) |
|
NTSTATUS | VfEvtDeviceSelfManagedIoSuspend (WDFDEVICE Device) |
|
NTSTATUS | VfEvtDeviceSelfManagedIoRestart (WDFDEVICE Device) |
|
NTSTATUS | VfEvtDeviceQueryStop (WDFDEVICE Device) |
|
NTSTATUS | VfEvtDeviceQueryRemove (WDFDEVICE Device) |
|
VOID | VfEvtDeviceSurpriseRemoval (WDFDEVICE Device) |
|
VOID | VfEvtDeviceUsageNotification (WDFDEVICE Device, WDF_SPECIAL_FILE_TYPE NotificationType, BOOLEAN IsInNotificationPath) |
|
NTSTATUS | VfEvtDeviceUsageNotificationEx (WDFDEVICE Device, WDF_SPECIAL_FILE_TYPE NotificationType, BOOLEAN IsInNotificationPath) |
|
VOID | VfEvtDeviceRelationsQuery (WDFDEVICE Device, DEVICE_RELATION_TYPE RelationType) |
|
VOID | VfEvtIoDefault (WDFQUEUE Queue, WDFREQUEST Request) |
|
VOID | VfEvtIoStop (WDFQUEUE Queue, WDFREQUEST Request, ULONG ActionFlags) |
|
VOID | VfEvtIoResume (WDFQUEUE Queue, WDFREQUEST Request) |
|
VOID | VfEvtIoRead (WDFQUEUE Queue, WDFREQUEST Request, size_t Length) |
|
VOID | VfEvtIoWrite (WDFQUEUE Queue, WDFREQUEST Request, size_t Length) |
|
VOID | VfEvtIoDeviceControl (WDFQUEUE Queue, WDFREQUEST Request, size_t OutputBufferLength, size_t InputBufferLength, ULONG IoControlCode) |
|
VOID | VfEvtIoInternalDeviceControl (WDFQUEUE Queue, WDFREQUEST Request, size_t OutputBufferLength, size_t InputBufferLength, ULONG IoControlCode) |
|
VOID | VfEvtIoCanceledOnQueue (WDFQUEUE Queue, WDFREQUEST Request) |
|
◆ VfEvtDeviceD0Entry()
Definition at line 57 of file vfeventhooks.cpp.
61{
65
67
70
71 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceD0Entry;
73 GUID activityId = { 0 };
75 returnVal = (pfn)(
78 );
79
81 } else {
84
87
88 returnVal = (pfn)(
91 );
92
95 }
96 }
97
98 return returnVal;
99}
__inline VOID VerifyCriticalRegionEntry(__out BOOLEAN *CritRegion)
__inline VOID PerfEvtDeviceD0EntryStop(__in WDFDEVICE Handle, __in GUID *pActivityId)
__inline VOID VerifyCriticalRegionExit(__in PWDF_DRIVER_GLOBALS DriverGlobals, __in BOOLEAN OldCritRegion, __in PVOID Pfn)
__inline VOID VerifyIrqlEntry(__out KIRQL *Irql)
__inline VOID VerifyIrqlExit(__in PWDF_DRIVER_GLOBALS DriverGlobals, __in KIRQL PrevIrql)
__inline BOOLEAN PerfEvtDeviceD0EntryStart(__in WDFDEVICE Handle, __inout GUID *pActivityId)
_Must_inspect_result_ _In_ WDFDEVICE Device
_In_ WDF_POWER_DEVICE_STATE PreviousState
EVT_WDF_DEVICE_D0_ENTRY * PFN_WDF_DEVICE_D0_ENTRY
#define PAGED_CODE_LOCKED()
◆ VfEvtDeviceD0EntryPostInterruptsEnabled()
Definition at line 102 of file vfeventhooks.cpp.
106{
110
112
115
116 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceD0EntryPostInterruptsEnabled;
120
123
124 returnVal = (pfn)(
127 );
128
131 }
132
133 return returnVal;
134}
EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED * PFN_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED
◆ VfEvtDeviceD0Exit()
Definition at line 137 of file vfeventhooks.cpp.
141{
145
147
150
151 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceD0Exit;
153 GUID activityId = { 0 };
155 returnVal = (pfn)(
158 );
159
161 } else {
164
167
168 returnVal = (pfn)(
171 );
172
175 }
176 }
177
178 return returnVal;
179}
__inline BOOLEAN PerfEvtDeviceD0ExitStart(__in WDFDEVICE Handle, __inout GUID *pActivityId)
__inline VOID PerfEvtDeviceD0ExitStop(__in WDFDEVICE Handle, __in GUID *pActivityId)
_In_ WDF_POWER_DEVICE_STATE TargetState
EVT_WDF_DEVICE_D0_EXIT * PFN_WDF_DEVICE_D0_EXIT
◆ VfEvtDeviceD0ExitPreInterruptsDisabled()
Definition at line 182 of file vfeventhooks.cpp.
186{
190
192
195
196 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceD0ExitPreInterruptsDisabled;
200
203
204 returnVal = (pfn)(
207 );
208
211 }
212
213 return returnVal;
214}
EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED * PFN_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED
◆ VfEvtDevicePrepareHardware()
NTSTATUS VfEvtDevicePrepareHardware |
( |
WDFDEVICE |
Device, |
|
|
WDFCMRESLIST |
ResourcesRaw, |
|
|
WDFCMRESLIST |
ResourcesTranslated |
|
) |
| |
Definition at line 217 of file vfeventhooks.cpp.
222{
226
228
231
232 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDevicePrepareHardware;
234 GUID activityId = { 0 };
236 returnVal = (pfn)(
240 );
241
243 } else {
246
249
250 returnVal = (pfn)(
254 );
255
258 }
259 }
260
261 return returnVal;
262}
__inline BOOLEAN PerfEvtDevicePrepareHardwareStart(__in WDFDEVICE Handle, __inout GUID *pActivityId)
__inline VOID PerfEvtDevicePrepareHardwareStop(__in WDFDEVICE Handle, __in GUID *pActivityId)
_In_ WDFCMRESLIST _In_ WDFCMRESLIST ResourcesTranslated
EVT_WDF_DEVICE_PREPARE_HARDWARE * PFN_WDF_DEVICE_PREPARE_HARDWARE
_In_ WDFCMRESLIST ResourcesRaw
◆ VfEvtDeviceQueryRemove()
NTSTATUS VfEvtDeviceQueryRemove |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 506 of file vfeventhooks.cpp.
509{
513
515
518
519 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceQueryRemove;
523
526
527 returnVal = (pfn)(
529 );
530
533 }
534
535 return returnVal;
536}
EVT_WDF_DEVICE_QUERY_REMOVE * PFN_WDF_DEVICE_QUERY_REMOVE
◆ VfEvtDeviceQueryStop()
NTSTATUS VfEvtDeviceQueryStop |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 473 of file vfeventhooks.cpp.
476{
480
482
485
486 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceQueryStop;
490
493
494 returnVal = (pfn)(
496 );
497
500 }
501
502 return returnVal;
503}
EVT_WDF_DEVICE_QUERY_STOP * PFN_WDF_DEVICE_QUERY_STOP
◆ VfEvtDeviceRelationsQuery()
Definition at line 644 of file vfeventhooks.cpp.
648{
651
653
656
657 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceRelationsQuery;
661
664
665 (pfn)(
668 );
669
672 }
673
674 return;
675}
_In_ DEVICE_RELATION_TYPE RelationType
EVT_WDF_DEVICE_RELATIONS_QUERY * PFN_WDF_DEVICE_RELATIONS_QUERY
◆ VfEvtDeviceReleaseHardware()
NTSTATUS VfEvtDeviceReleaseHardware |
( |
WDFDEVICE |
Device, |
|
|
WDFCMRESLIST |
ResourcesTranslated |
|
) |
| |
Definition at line 265 of file vfeventhooks.cpp.
269{
273
275
278
279 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceReleaseHardware;
281 GUID activityId = { 0 };
283 returnVal = (pfn)(
286 );
287
289 } else {
292
295
296 returnVal = (pfn)(
299 );
300
303 }
304 }
305
306 return returnVal;
307}
__inline VOID PerfEvtDeviceReleaseHardwareStop(__in WDFDEVICE Handle, __in GUID *pActivityId)
__inline BOOLEAN PerfEvtDeviceReleaseHardwareStart(__in WDFDEVICE Handle, __inout GUID *pActivityId)
EVT_WDF_DEVICE_RELEASE_HARDWARE * PFN_WDF_DEVICE_RELEASE_HARDWARE
◆ VfEvtDeviceSelfManagedIoCleanup()
VOID VfEvtDeviceSelfManagedIoCleanup |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 310 of file vfeventhooks.cpp.
313{
316
318
321
322 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceSelfManagedIoCleanup;
326
329
330 (pfn)(
332 );
333
336 }
337
338 return;
339}
EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP * PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP
◆ VfEvtDeviceSelfManagedIoFlush()
VOID VfEvtDeviceSelfManagedIoFlush |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 342 of file vfeventhooks.cpp.
345{
348
350
353
354 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceSelfManagedIoFlush;
358
361
362 (pfn)(
364 );
365
368 }
369
370 return;
371}
EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH * PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH
◆ VfEvtDeviceSelfManagedIoInit()
NTSTATUS VfEvtDeviceSelfManagedIoInit |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 374 of file vfeventhooks.cpp.
377{
381
383
386
387 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceSelfManagedIoInit;
391
394
395 returnVal = (pfn)(
397 );
398
401 }
402
403 return returnVal;
404}
EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT * PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT
◆ VfEvtDeviceSelfManagedIoRestart()
NTSTATUS VfEvtDeviceSelfManagedIoRestart |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 440 of file vfeventhooks.cpp.
443{
447
449
452
453 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceSelfManagedIoRestart;
457
460
461 returnVal = (pfn)(
463 );
464
467 }
468
469 return returnVal;
470}
EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART * PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART
◆ VfEvtDeviceSelfManagedIoSuspend()
NTSTATUS VfEvtDeviceSelfManagedIoSuspend |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 407 of file vfeventhooks.cpp.
410{
414
416
419
420 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceSelfManagedIoSuspend;
424
427
428 returnVal = (pfn)(
430 );
431
434 }
435
436 return returnVal;
437}
EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND * PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND
◆ VfEvtDeviceSurpriseRemoval()
VOID VfEvtDeviceSurpriseRemoval |
( |
WDFDEVICE |
Device | ) |
|
Definition at line 539 of file vfeventhooks.cpp.
542{
545
547
550
551 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceSurpriseRemoval;
555
558
559 (pfn)(
561 );
562
565 }
566
567 return;
568}
EVT_WDF_DEVICE_SURPRISE_REMOVAL * PFN_WDF_DEVICE_SURPRISE_REMOVAL
◆ VfEvtDeviceUsageNotification()
Definition at line 571 of file vfeventhooks.cpp.
576{
579
581
584
585 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceUsageNotification;
589
592
593 (pfn)(
597 );
598
601 }
602
603 return;
604}
_In_ WDF_SPECIAL_FILE_TYPE _In_ BOOLEAN IsInNotificationPath
_In_ WDF_SPECIAL_FILE_TYPE NotificationType
EVT_WDF_DEVICE_USAGE_NOTIFICATION * PFN_WDF_DEVICE_USAGE_NOTIFICATION
◆ VfEvtDeviceUsageNotificationEx()
Definition at line 607 of file vfeventhooks.cpp.
612{
616
618
621
622 pfn =
context->PnpPowerEventCallbacksOriginal.EvtDeviceUsageNotificationEx;
626
629
630 returnVal = (pfn)(
634 );
635
638 }
639
640 return returnVal;
641}
EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX * PFN_WDF_DEVICE_USAGE_NOTIFICATION_EX
◆ VfEvtIoCanceledOnQueue()
VOID VfEvtIoCanceledOnQueue |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request |
|
) |
| |
Definition at line 988 of file vfeventhooks.cpp.
992{
995
997
1000
1001 pfn =
context->IoQueueConfigOriginal.EvtIoCanceledOnQueue;
1005
1008
1009 (pfn)(
1012 );
1013
1016 }
1017
1018 return;
1019}
_Must_inspect_result_ _In_ WDFDEVICE _In_ PIRP _In_ WDFQUEUE Queue
EVT_WDF_IO_QUEUE_IO_CANCELED_ON_QUEUE * PFN_WDF_IO_QUEUE_IO_CANCELED_ON_QUEUE
◆ VfEvtIoDefault()
VOID VfEvtIoDefault |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request |
|
) |
| |
Definition at line 678 of file vfeventhooks.cpp.
682{
685
687
690
691 pfn =
context->IoQueueConfigOriginal.EvtIoDefault;
694 (pfn)(
697 );
698 } else {
701
704
705 (pfn)(
708 );
709
712 }
713 }
714
715 return;
716}
FORCEINLINE BOOLEAN PerfIoStart(__in WDFREQUEST Handle)
EVT_WDF_IO_QUEUE_IO_DEFAULT * PFN_WDF_IO_QUEUE_IO_DEFAULT
◆ VfEvtIoDeviceControl()
VOID VfEvtIoDeviceControl |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request, |
|
|
size_t |
OutputBufferLength, |
|
|
size_t |
InputBufferLength, |
|
|
ULONG |
IoControlCode |
|
) |
| |
Definition at line 888 of file vfeventhooks.cpp.
895{
898
900
903
904 pfn =
context->IoQueueConfigOriginal.EvtIoDeviceControl;
907 (pfn)(
913 );
914 } else {
917
920
921 (pfn)(
927 );
928
931 }
932 }
933
934 return;
935}
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL * PFN_WDF_IO_QUEUE_IO_DEVICE_CONTROL
_In_ WDFREQUEST _In_ size_t OutputBufferLength
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
◆ VfEvtIoInternalDeviceControl()
VOID VfEvtIoInternalDeviceControl |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request, |
|
|
size_t |
OutputBufferLength, |
|
|
size_t |
InputBufferLength, |
|
|
ULONG |
IoControlCode |
|
) |
| |
Definition at line 938 of file vfeventhooks.cpp.
945{
948
950
953
954 pfn =
context->IoQueueConfigOriginal.EvtIoInternalDeviceControl;
957 (pfn)(
963 );
964 } else {
967
970
971 (pfn)(
977 );
978
981 }
982 }
983
984 return;
985}
EVT_WDF_IO_QUEUE_IO_INTERNAL_DEVICE_CONTROL * PFN_WDF_IO_QUEUE_IO_INTERNAL_DEVICE_CONTROL
◆ VfEvtIoRead()
VOID VfEvtIoRead |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request, |
|
|
size_t |
Length |
|
) |
| |
Definition at line 800 of file vfeventhooks.cpp.
805{
808
810
813
814 pfn =
context->IoQueueConfigOriginal.EvtIoRead;
817 (pfn)(
821 );
822 } else {
825
828
829 (pfn)(
833 );
834
837 }
838 }
839
840 return;
841}
_In_ ULONG _In_ ULONG _In_ ULONG Length
EVT_WDF_IO_QUEUE_IO_READ * PFN_WDF_IO_QUEUE_IO_READ
◆ VfEvtIoResume()
VOID VfEvtIoResume |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request |
|
) |
| |
Definition at line 766 of file vfeventhooks.cpp.
770{
773
775
778
779 pfn =
context->IoQueueConfigOriginal.EvtIoResume;
783
786
787 (pfn)(
790 );
791
794 }
795
796 return;
797}
EVT_WDF_IO_QUEUE_IO_RESUME * PFN_WDF_IO_QUEUE_IO_RESUME
◆ VfEvtIoStop()
VOID VfEvtIoStop |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request, |
|
|
ULONG |
ActionFlags |
|
) |
| |
Definition at line 719 of file vfeventhooks.cpp.
724{
727
729
732
733 pfn =
context->IoQueueConfigOriginal.EvtIoStop;
735 GUID activityId = { 0 };
737 (pfn)(
741 );
742
744 } else {
747
750
751 (pfn)(
755 );
756
759 }
760 }
761
762 return;
763}
__inline BOOLEAN PerfEvtIoStopStart(__in WDFQUEUE Queue, __inout GUID *pActivityId)
__inline VOID PerfEvtIoStopStop(__in WDFQUEUE Queue, __in GUID *pActivityId)
EVT_WDF_IO_QUEUE_IO_STOP * PFN_WDF_IO_QUEUE_IO_STOP
_In_ WDFREQUEST _In_ ULONG ActionFlags
◆ VfEvtIoWrite()
VOID VfEvtIoWrite |
( |
WDFQUEUE |
Queue, |
|
|
WDFREQUEST |
Request, |
|
|
size_t |
Length |
|
) |
| |
Definition at line 844 of file vfeventhooks.cpp.
849{
852
854
857
858 pfn =
context->IoQueueConfigOriginal.EvtIoWrite;
861 (pfn)(
865 );
866 } else {
869
872
873 (pfn)(
877 );
878
881 }
882 }
883
884 return;
885}
EVT_WDF_IO_QUEUE_IO_WRITE * PFN_WDF_IO_QUEUE_IO_WRITE
◆ WdfVersion