ReactOS  0.4.15-dev-3303-g1ade494
fxpnpcallbacks.hpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxPnpCallbacks.hpp
8 
9 Abstract:
10 
11  This module implements the PnP/Power callback objects.
12 
13 Author:
14 
15 
16 
17 Environment:
18 
19  Both kernel and user mode
20 
21 Revision History:
22 
23 --*/
24 
25 #ifndef _FXPNPCALLBACKS_H_
26 #define _FXPNPCALLBACKS_H_
27 
29 
30 public:
32 
34  VOID
35  ) : FxCallback(), m_Method(NULL)
36  {
37  }
38 
40  NTSTATUS
42  __in WDFDEVICE Device,
43  __in WDFIORESREQLIST Collection
44  )
45  {
46  if (m_Method != NULL) {
48 
49  CallbackStart();
51  CallbackEnd();
52 
53  return status;
54  }
55  else {
56  return STATUS_SUCCESS;
57  }
58  }
59 };
60 
62 
63 public:
65 
67  VOID
68  ) : FxCallback(), m_Method(NULL)
69  {
70  }
71 
73  NTSTATUS
75  __in WDFDEVICE Device,
77  )
78  {
79  if (m_Method != NULL) {
81 
82  CallbackStart();
84  CallbackEnd();
85 
86  return status;
87  }
88  else {
89  return STATUS_SUCCESS;
90  }
91  }
92 };
93 
95 
96 public:
98 
100  VOID
101  ) : FxCallback(), m_Method(NULL)
102  {
103  }
104 
106  NTSTATUS
108  __in WDFDEVICE Device,
110  )
111  {
112  if (m_Method != NULL) {
114 
115  CallbackStart();
117  CallbackEnd();
118 
119  return status;
120  }
121  else {
122  return STATUS_SUCCESS;
123  }
124  }
125 };
126 
128 
129 public:
131 
133  VOID
134  ) : FxCallback(), m_Method(NULL)
135  {
136  }
137 
139  NTSTATUS
141  __in WDFDEVICE Device,
143  )
144  {
145  if (m_Method != NULL) {
147 
148  CallbackStart();
150  CallbackEnd();
151 
152  return status;
153  }
154  else {
155  return STATUS_SUCCESS;
156  }
157  }
158 };
159 
161 
162 public:
164 
166  VOID
167  ) : FxCallback(), m_Method(NULL)
168  {
169  }
170 
172  NTSTATUS
174  __in WDFDEVICE Device,
176  )
177  {
178  if (m_Method != NULL) {
180 
181  CallbackStart();
183  CallbackEnd();
184 
185  return status;
186  }
187  else {
188  return STATUS_SUCCESS;
189  }
190  }
191 };
192 
194 
195 public:
197 
199  VOID
200  ) : FxCallback(), m_Method(NULL)
201  {
202  }
203 
205  NTSTATUS
207  __in WDFDEVICE Device,
208  __in WDFCMRESLIST ResourcesRaw,
209  __in WDFCMRESLIST ResourcesTranslated
210  )
211  {
212  if (m_Method != NULL) {
214 
215  CallbackStart();
217  CallbackEnd();
218 
219  return status;
220  }
221  else {
222  return STATUS_SUCCESS;
223  }
224  }
225 };
226 
228 
229 public:
231 
233  VOID
234  ) : FxCallback(), m_Method(NULL)
235  {
236  }
237 
239  NTSTATUS
241  __in WDFDEVICE Device,
242  __in WDFCMRESLIST ResourcesTranslated
243  )
244  {
245  if (m_Method != NULL) {
247 
248  CallbackStart();
250  CallbackEnd();
251 
252  return status;
253  }
254  else {
255  return STATUS_SUCCESS;
256  }
257  }
258 };
259 
261 public:
263 
264 public:
266  VOID
267  ) : FxCallback(), m_Method(NULL)
268  {
269  }
270 
272  NTSTATUS
274  __in WDFDEVICE Device,
275  __in WDFCMRESLIST ResourcesRaw,
276  __in WDFCMRESLIST ResourcesTranslated
277  )
278  {
279  if (m_Method != NULL) {
281 
282  CallbackStart();
284  CallbackEnd();
285 
286  return status;
287  }
288  else {
289  return STATUS_SUCCESS;
290  }
291  }
292 };
293 
295 
296 public:
298 
300  VOID
301  ) : m_Method(NULL)
302  {
303  }
304 
305  VOID
307  __in WDFDEVICE Device
308  )
309  {
310  if (m_Method != NULL) {
311  CallbackStart();
312  m_Method(Device);
313  CallbackEnd();
314  }
315  }
316 };
317 
319 
320 public:
322 
324  VOID
325  ) : m_Method(NULL)
326  {
327  }
328 
329  VOID
331  __in WDFDEVICE Device
332  )
333  {
334  if (m_Method != NULL) {
335  CallbackStart();
336  m_Method(Device);
337  CallbackEnd();
338  }
339  }
340 };
341 
343 
344 public:
346 
348  VOID
349  ) : m_Method(NULL)
350  {
351  }
352 
354  NTSTATUS
356  __in WDFDEVICE Device
357  )
358  {
359  if (m_Method != NULL) {
361 
362  CallbackStart();
364  CallbackEnd();
365 
366  return status;
367  }
368  else {
369  return STATUS_SUCCESS;
370  }
371  }
372 };
373 
375 
376 public:
378 
380  VOID
381  ) : m_Method(NULL)
382  {
383  }
384 
386  NTSTATUS
388  __in WDFDEVICE Device
389  )
390  {
391  if (m_Method != NULL) {
393 
394  CallbackStart();
396  CallbackEnd();
397 
398  return status;
399  }
400  else {
401  return STATUS_SUCCESS;
402  }
403  }
404 };
405 
407 
408 public:
410 
412  VOID
413  ) : m_Method(NULL)
414  {
415  }
416 
418  NTSTATUS
420  __in WDFDEVICE Device
421  )
422  {
423  if (m_Method != NULL) {
425 
426  CallbackStart();
428  CallbackEnd();
429 
430  return status;
431  }
432  else {
433  return STATUS_SUCCESS;
434  }
435  }
436 };
437 
439 
440 public:
442 
444  VOID
445  ) : FxCallback(), m_Method(NULL)
446  {
447  }
448 
450  NTSTATUS
452  __in WDFDEVICE Device
453  )
454  {
455  if (m_Method != NULL) {
457 
458  CallbackStart();
460  CallbackEnd();
461 
462  return status;
463  }
464  else {
465  return STATUS_SUCCESS;
466  }
467  }
468 };
469 
471 
472 public:
474 
476  VOID
477  ) : FxCallback(), m_Method(NULL)
478  {
479  }
480 
482  NTSTATUS
484  __in WDFDEVICE Device
485  )
486  {
487  if (m_Method != NULL) {
489 
490  CallbackStart();
492  CallbackEnd();
493 
494  return status;
495  }
496  else {
497  return STATUS_SUCCESS;
498  }
499  }
500 };
501 
503 
504 public:
506 
508  VOID
509  ) : FxCallback(), m_Method(NULL)
510  {
511  }
512 
514  NTSTATUS
516  __in WDFDEVICE Device,
517  __in WDFCMRESLIST Collection
518  )
519  {
520  if (m_Method != NULL) {
522 
523  CallbackStart();
525  CallbackEnd();
526 
527  return status;
528  }
529  else {
530  return STATUS_SUCCESS;
531  }
532  }
533 };
534 
536 
537 public:
539 
541  VOID
542  ) : FxCallback(), m_Method(NULL)
543  {
544  }
545 
547  NTSTATUS
549  __in WDFDEVICE Device,
550  __in WDFIORESREQLIST Collection
551  )
552  {
553  if (m_Method != NULL) {
555 
556  CallbackStart();
558  CallbackEnd();
559 
560  return status;
561  }
562  else {
563  return STATUS_SUCCESS;
564  }
565  }
566 };
567 
568 class FxPnpDeviceEject : public FxCallback {
569 
570 public:
572 
574  VOID
575  ) : FxCallback(), m_Method(NULL)
576  {
577  }
578 
580  NTSTATUS
582  __in WDFDEVICE Device
583  )
584  {
585  if (m_Method != NULL) {
587 
588  CallbackStart();
590  CallbackEnd();
591 
592  return status;
593  }
594  else {
595  return STATUS_SUCCESS;
596  }
597  }
598 };
599 
601 
602 public:
604 
606  VOID
607  ) : FxCallback(), m_Method(NULL)
608  {
609  }
610 
611  VOID
613  __in WDFDEVICE Device
614  )
615  {
616  if (m_Method != NULL) {
617  CallbackStart();
618  m_Method(Device);
619  CallbackEnd();
620  }
621  }
622 };
623 
625 
626 public:
628 
630  VOID
631  ) : FxCallback(), m_Method(NULL)
632  {
633  }
634 
635  VOID
637  __in WDFDEVICE Device,
639  __in BOOLEAN InPath
640  )
641  {
642  if (m_Method != NULL) {
643  CallbackStart();
644  m_Method(Device, NotificationType, InPath);
645  CallbackEnd();
646  }
647  }
648 };
649 
651 
652 public:
654 
656  VOID
657  ) : FxCallback(), m_Method(NULL)
658  {
659  }
660 
662  NTSTATUS
664  __in WDFDEVICE Device,
666  __in BOOLEAN InPath
667  )
668  {
669  if (m_Method != NULL) {
671 
672  CallbackStart();
674  CallbackEnd();
675 
676  return status;
677  }
678  else {
679  return STATUS_SUCCESS;
680  }
681  }
682 };
683 
685 
686 public:
688 
690  VOID
691  ) : FxCallback(), m_Method(NULL)
692  {
693  }
694 
695  VOID
697  __in WDFDEVICE Device,
699  )
700  {
701  if (m_Method != NULL) {
702  CallbackStart();
704  CallbackEnd();
705  }
706  }
707 };
708 
710 
711 public:
713 
715  VOID
716  ) : FxCallback(), m_Method(NULL)
717  {
718  }
719 
721  NTSTATUS
723  __in WDFDEVICE Device,
725  )
726  {
727  if (m_Method != NULL) {
729 
730  CallbackStart();
732  CallbackEnd();
733 
734  return status;
735  }
736  else {
737  return STATUS_UNSUCCESSFUL;
738  }
739  }
740 };
741 
743 
744 public:
746 
748  VOID
749  ) : FxCallback(), m_Method(NULL)
750  {
751  }
752 
753  VOID
755  __in WDFDEVICE Device
756  )
757  {
758  if (m_Method != NULL) {
759  CallbackStart();
760  m_Method(Device);
761  CallbackEnd();
762  }
763  }
764 };
765 
767 
768 public:
770 
772  VOID
773  ) : FxCallback(), m_Method(NULL)
774  {
775  }
776 
778  NTSTATUS
780  __in WDFDEVICE Device,
782  )
783  {
785 
786  if (m_Method != NULL) {
787  CallbackStart();
789  CallbackEnd();
790 
791  return status;
792  }
793  else {
794  return STATUS_SUCCESS;
795  }
796  }
797 };
798 
800 
801 public:
803 
805  VOID
806  ) : FxCallback(), m_Method(NULL)
807  {
808  }
809 
810  VOID
812  __in WDFDEVICE Device
813  )
814  {
815  if (m_Method != NULL) {
816  CallbackStart();
817  m_Method(Device);
818  CallbackEnd();
819  }
820  }
821 };
822 
824 
825 public:
827 
829  VOID
830  ) : m_Method(NULL)
831  {
832  }
833 
835  NTSTATUS
837  __in WDFDEVICE Device
838  )
839  {
840  if (m_Method != NULL) {
842 
843  CallbackStart();
845  CallbackEnd();
846 
847  return status;
848  }
849  else {
850  return STATUS_SUCCESS;
851  }
852  }
853 };
854 
856 
857 public:
860 
862  VOID
863  ) : m_Method(NULL),
865  {
866  }
867 
869  NTSTATUS
871  __in WDFDEVICE Device,
874  )
875  {
876  if (m_MethodWithReason != NULL) {
878 
879  CallbackStart();
883  CallbackEnd();
884 
885  return status;
886  }
887  else if (m_Method != NULL) {
889 
890  CallbackStart();
892  CallbackEnd();
893 
894  return status;
895  }
896  else {
897  return STATUS_SUCCESS;
898  }
899  }
900 };
901 
903 
904 public:
906 
908  VOID
909  ) : m_Method(NULL)
910  {
911  }
912 
913  VOID
915  __in WDFDEVICE Device
916  )
917  {
918  if (m_Method != NULL) {
919  CallbackStart();
920  m_Method(Device);
921  CallbackEnd();
922  }
923  }
924 };
925 
927 
928 public:
930 
932  VOID
933  ) : m_Method(NULL)
934  {
935  }
936 
937  VOID
939  __in WDFDEVICE Device
940  )
941  {
942  if (m_Method != NULL) {
943  CallbackStart();
944  m_Method(Device);
945  CallbackEnd();
946  }
947  }
948 };
949 
951 
952 public:
954 
956  VOID
957  ) : m_Method(NULL)
958  {
959  }
960 
961  VOID
963  __in WDFDEVICE Device
964  )
965  {
966  if (m_Method != NULL) {
967  CallbackStart();
968  m_Method(Device);
969  CallbackEnd();
970  }
971  }
972 };
973 
975 
976 public:
978 
980  VOID
981  ) : m_Method(NULL)
982  {
983  }
984 
985  VOID
987  __in WDFDEVICE Device
988  )
989  {
990  if (m_Method != NULL) {
991  CallbackStart();
992  m_Method(Device);
993  CallbackEnd();
994  }
995  }
996 };
997 
999  //
1000  // Bit field of WDF_STATE_NOTIFICATION_TYPE defined values
1001  //
1003 
1004  //
1005  // Function to call
1006  //
1008 };
1009 
1011 
1013  VOID
1014  ) : FxCallback()
1015  {
1016  RtlZeroMemory(&m_Methods[0], sizeof(m_Methods));
1017  }
1018 
1019  VOID
1023  __in WDFDEVICE Device,
1025  )
1026  {
1027  FxPnpStateCallbackInfo* pInfo;
1028 
1030 
1031  if (pInfo->Callback != NULL && (pInfo->Types & Type)) {
1032  CallbackStart();
1033  pInfo->Callback(Device, NotificationData);
1034  CallbackEnd();
1035  }
1036  }
1037 
1039 };
1040 
1042  //
1043  // Bit field of WDF_STATE_NOTIFICATION_TYPE defined values
1044  //
1046 
1047  //
1048  // Function to call
1049  //
1051 };
1052 
1055  VOID
1056  ) : FxCallback()
1057  {
1058  RtlZeroMemory(&m_Methods[0], sizeof(m_Methods));
1059  }
1060 
1061  VOID
1065  __in WDFDEVICE Device,
1067  )
1068  {
1069  FxPowerStateCallbackInfo *pInfo;
1070 
1072 
1073  if (pInfo->Callback != NULL && (pInfo->Types & Type)) {
1074  CallbackStart();
1075  pInfo->Callback(Device, NotificationData);
1076  CallbackEnd();
1077  }
1078  }
1079 
1081 };
1082 
1084  //
1085  // Bit field of WDF_STATE_NOTIFICATION_TYPE defined values
1086  //
1088 
1089  //
1090  // Function to call
1091  //
1093 };
1094 
1097  VOID
1098  ) : FxCallback()
1099  {
1100  RtlZeroMemory(&m_Methods[0], sizeof(m_Methods));
1101  }
1102 
1103  VOID
1107  __in WDFDEVICE Device,
1109  )
1110  {
1112 
1114 
1115  if (pInfo->Callback != NULL && (pInfo->Types & Type)) {
1116  CallbackStart();
1117  pInfo->Callback(Device, NotificationData);
1118  CallbackEnd();
1119  }
1120  }
1121 
1123 };
1124 
1125 
1126 
1127 #endif // _FXPNPCALLBACKS_H_
enum _WDF_DEVICE_PNP_STATE WDF_DEVICE_PNP_STATE
PFN_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION Callback
EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0 * PFN_WDF_DEVICE_DISARM_WAKE_FROM_S0
Definition: wdfdevice.h:1117
PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART m_Method
EVT_WDF_DEVICE_ENABLE_WAKE_AT_BUS * PFN_WDF_DEVICE_ENABLE_WAKE_AT_BUS
Definition: wdfpdo.h:123
VOID Invoke(__in WDFDEVICE Device)
PFN_WDF_DEVICE_SET_LOCK m_Method
PFN_WDF_DEVICE_QUERY_REMOVE m_Method
VOID Invoke(__in WDFDEVICE Device)
VOID Invoke(__in WDF_DEVICE_POWER_STATE State, __in WDF_STATE_NOTIFICATION_TYPE Type, __in WDFDEVICE Device, __in PCWDF_DEVICE_POWER_NOTIFICATION_DATA NotificationData)
VOID Invoke(__in WDFDEVICE Device)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
EVT_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY * PFN_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY
Definition: wdfpdo.h:80
EVT_WDF_DEVICE_RESOURCES_QUERY * PFN_WDF_DEVICE_RESOURCES_QUERY
Definition: wdfpdo.h:65
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDF_SPECIAL_FILE_TYPE NotificationType, __in BOOLEAN InPath)
_In_ BOOLEAN _In_ BOOLEAN ChildrenArmedForWake
Definition: wdfdevice.h:1099
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in SYSTEM_POWER_STATE PowerState)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDFCMRESLIST Collection)
EVT_WDF_DEVICE_ARM_WAKE_FROM_S0 * PFN_WDF_DEVICE_ARM_WAKE_FROM_S0
Definition: wdfdevice.h:1074
EVT_WDF_DEVICE_DISABLE_WAKE_AT_BUS * PFN_WDF_DEVICE_DISABLE_WAKE_AT_BUS
Definition: wdfpdo.h:136
PFN_WDF_DEVICE_DISARM_WAKE_FROM_S0 m_Method
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ WDFCOLLECTION Collection
Definition: wdfregistry.h:367
LONG NTSTATUS
Definition: precomp.h:26
PFN_WDF_DEVICE_EJECT m_Method
FxPowerStateCallbackInfo m_Methods[WdfDevStatePowerNull-WdfDevStatePowerObjectCreated]
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDF_POWER_DEVICE_STATE TargetState)
enum _WDF_STATE_NOTIFICATION_TYPE WDF_STATE_NOTIFICATION_TYPE
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDFIORESREQLIST Collection)
VOID Invoke(__in WDF_DEVICE_PNP_STATE State, __in WDF_STATE_NOTIFICATION_TYPE Type, __in WDFDEVICE Device, __in PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData)
PFN_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED m_Method
EVT_WDF_DEVICE_PREPARE_HARDWARE * PFN_WDF_DEVICE_PREPARE_HARDWARE
Definition: wdfdevice.h:893
EVT_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON * PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON
Definition: wdfdevice.h:1104
EVT_WDF_DEVICE_REPORTED_MISSING * PFN_WDF_DEVICE_REPORTED_MISSING
Definition: wdfpdo.h:149
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
EVT_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND * PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND
Definition: wdfdevice.h:960
EVT_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION * PFN_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION
Definition: wdfdevice.h:799
PFN_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED m_Method
PFN_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED m_Method
PFN_WDF_DEVICE_DISARM_WAKE_FROM_SX m_Method
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDF_POWER_DEVICE_STATE TargetState)
PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS m_Method
PFN_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION Callback
_In_ WDF_SPECIAL_FILE_TYPE NotificationType
Definition: wdfdevice.h:1024
VOID Invoke(__in WDFDEVICE Device, __in WDF_SPECIAL_FILE_TYPE NotificationType, __in BOOLEAN InPath)
PFN_WDF_DEVICE_QUERY_STOP m_Method
EVT_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED * PFN_WDF_DEVICE_D0_EXIT_PRE_INTERRUPTS_DISABLED
Definition: wdfdevice.h:876
_In_ WDFCMRESLIST ResourcesRaw
Definition: wdfdevice.h:888
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDFCMRESLIST ResourcesRaw, __in WDFCMRESLIST ResourcesTranslated)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDF_POWER_DEVICE_STATE PreviousState)
PFN_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION Callback
EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION * PFN_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION
Definition: wdfdevice.h:814
PFN_WDF_DEVICE_ARM_WAKE_FROM_S0 m_Method
unsigned char BOOLEAN
PFN_WDF_DEVICE_REPORTED_MISSING m_Method
PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT m_Method
VOID Invoke(__in WDF_DEVICE_POWER_POLICY_STATE State, __in WDF_STATE_NOTIFICATION_TYPE Type, __in WDFDEVICE Device, __in PCWDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA NotificationData)
EVT_WDF_DEVICE_EJECT * PFN_WDF_DEVICE_EJECT
Definition: wdfpdo.h:93
PFN_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY m_Method
EVT_WDF_DEVICE_D0_EXIT * PFN_WDF_DEVICE_D0_EXIT
Definition: wdfdevice.h:861
enum _DEVICE_RELATION_TYPE DEVICE_RELATION_TYPE
PFN_WDF_DEVICE_PREPARE_HARDWARE m_Method
VOID Invoke(__in WDFDEVICE Device)
EVT_WDF_DEVICE_SELF_MANAGED_IO_INIT * PFN_WDF_DEVICE_SELF_MANAGED_IO_INIT
Definition: wdfdevice.h:947
EVT_WDF_DEVICE_ARM_WAKE_FROM_SX * PFN_WDF_DEVICE_ARM_WAKE_FROM_SX
Definition: wdfdevice.h:1087
EVT_WDF_DEVICE_USAGE_NOTIFICATION_EX * PFN_WDF_DEVICE_USAGE_NOTIFICATION_EX
Definition: wdfdevice.h:1046
_In_ DEVICE_RELATION_TYPE RelationType
Definition: wdfdevice.h:1059
EVT_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP * PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP
Definition: wdfdevice.h:921
PFN_WDF_DEVICE_D0_ENTRY m_Method
PFN_WDF_DEVICE_USAGE_NOTIFICATION_EX m_Method
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in BOOLEAN DeviceWakeEnabled, __in BOOLEAN ChildrenArmedForWake)
EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED * PFN_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED
Definition: wdfdevice.h:846
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON m_MethodWithReason
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
PFN_WDF_DEVICE_ENABLE_WAKE_AT_BUS m_Method
VOID Invoke(__in WDFDEVICE Device)
PFN_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED m_Method
Type
Definition: Type.h:6
VOID Invoke(__in WDFDEVICE Device)
EVT_WDF_DEVICE_REMOVE_ADDED_RESOURCES * PFN_WDF_DEVICE_REMOVE_ADDED_RESOURCES
Definition: wdffdo.h:83
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX m_Method
EVT_WDF_DEVICE_SELF_MANAGED_IO_RESTART * PFN_WDF_DEVICE_SELF_MANAGED_IO_RESTART
Definition: wdfdevice.h:973
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX * PFN_WDF_DEVICE_DISARM_WAKE_FROM_SX
Definition: wdfdevice.h:1130
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in BOOLEAN Lock)
VOID Invoke(__in WDFDEVICE Device)
PFN_WDF_DEVICE_SURPRISE_REMOVAL m_Method
PFN_WDF_DEVICE_DISABLE_WAKE_AT_BUS m_Method
#define _Must_inspect_result_
Definition: ms_sal.h:558
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_In_ WDFCMRESLIST _In_ WDFCMRESLIST ResourcesTranslated
Definition: wdfdevice.h:888
VOID Invoke(__in WDFDEVICE Device)
_In_ WDF_POWER_DEVICE_STATE TargetState
Definition: wdfdevice.h:859
EVT_WDF_DEVICE_SELF_MANAGED_IO_FLUSH * PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH
Definition: wdfdevice.h:934
EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION * PFN_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION
Definition: wdfdevice.h:784
VOID Invoke(__in WDFDEVICE Device, __in DEVICE_RELATION_TYPE RelationType)
FORCEINLINE ULONG WdfDevStateNormalize(_In_ ULONG State)
Definition: wdfdevice.h:1225
EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED * PFN_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED
Definition: wdfdevice.h:1156
VOID Invoke(__in WDFDEVICE Device)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
Definition: wdfdevice.h:3032
EVT_WDF_DEVICE_SET_LOCK * PFN_WDF_DEVICE_SET_LOCK
Definition: wdfpdo.h:108
PFN_WDF_DEVICE_SELF_MANAGED_IO_FLUSH m_Method
#define NULL
Definition: types.h:112
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
FxPnpStateCallbackInfo m_Methods[WdfDevStatePnpNull - WdfDevStatePnpObjectCreated]
PFN_WDF_DEVICE_D0_EXIT m_Method
EVT_WDF_DEVICE_D0_ENTRY * PFN_WDF_DEVICE_D0_ENTRY
Definition: wdfdevice.h:831
PFN_WDF_DEVICE_RESOURCES_QUERY m_Method
PFN_WDF_DEVICE_RELATIONS_QUERY m_Method
enum _WDF_DEVICE_POWER_POLICY_STATE WDF_DEVICE_POWER_POLICY_STATE
EVT_WDF_DEVICE_QUERY_REMOVE * PFN_WDF_DEVICE_QUERY_REMOVE
Definition: wdfdevice.h:999
FxPowerPolicyStateCallbackInfo m_Methods[WdfDevStatePwrPolNull-WdfDevStatePwrPolObjectCreated]
PFN_WDF_DEVICE_SELF_MANAGED_IO_SUSPEND m_Method
EVT_WDF_DEVICE_RELATIONS_QUERY * PFN_WDF_DEVICE_RELATIONS_QUERY
Definition: wdfdevice.h:1061
PFN_WDF_DEVICE_SELF_MANAGED_IO_CLEANUP m_Method
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDF_POWER_DEVICE_STATE PreviousState)
EVT_WDF_DEVICE_QUERY_STOP * PFN_WDF_DEVICE_QUERY_STOP
Definition: wdfdevice.h:986
PFN_WDF_DEVICE_REMOVE_ADDED_RESOURCES m_Method
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:124
unsigned int ULONG
Definition: retypes.h:1
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
PFN_WDF_DEVICE_RELEASE_HARDWARE m_Method
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
enum _WDF_DEVICE_POWER_STATE WDF_DEVICE_POWER_STATE
enum _WDF_POWER_DEVICE_STATE WDF_POWER_DEVICE_STATE
#define STATUS_SUCCESS
Definition: shellext.h:65
EVT_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED * PFN_WDF_DEVICE_WAKE_FROM_S0_TRIGGERED
Definition: wdfdevice.h:1143
_In_ PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
Definition: wdfdevice.h:782
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDFCMRESLIST ResourcesRaw, __in WDFCMRESLIST ResourcesTranslated)
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device)
EVT_WDF_DEVICE_SURPRISE_REMOVAL * PFN_WDF_DEVICE_SURPRISE_REMOVAL
Definition: wdfdevice.h:1012
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDFIORESREQLIST Collection)
#define __in
Definition: dbghelp.h:35
static SERVICE_STATUS status
Definition: service.c:31
PFN_WDF_DEVICE_USAGE_NOTIFICATION m_Method
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDEVICE Device, __in WDFCMRESLIST ResourcesTranslated)
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
enum _WDF_SPECIAL_FILE_TYPE WDF_SPECIAL_FILE_TYPE
EVT_WDF_DEVICE_RELEASE_HARDWARE * PFN_WDF_DEVICE_RELEASE_HARDWARE
Definition: wdfdevice.h:908
EVT_WDF_DEVICE_USAGE_NOTIFICATION * PFN_WDF_DEVICE_USAGE_NOTIFICATION
Definition: wdfdevice.h:1029
EVT_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS * PFN_WDF_DEVICE_FILTER_RESOURCE_REQUIREMENTS
Definition: wdffdo.h:66
_In_ WDF_POWER_DEVICE_STATE PreviousState
Definition: wdfdevice.h:829
_In_ BOOLEAN DeviceWakeEnabled
Definition: wdfdevice.h:1099
Definition: ps.c:97