ReactOS  0.4.15-dev-3440-g915569a
fxpkgpdoum.cpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxPkgPdoUM.cpp
8 
9 Abstract:
10 
11  This module implements the Pnp package for Pdo devices.
12 
13 Author:
14 
15 Environment:
16 
17  User mode only
18 
19 Revision History:
20 
21 --*/
22 
23 #include "../pnppriv.hpp"
24 #include <wdmguid.h>
25 
26 // Tracing support
27 #if defined(EVENT_TRACING)
28 extern "C" {
29 #include "FxPkgPdoUM.tmh"
30 }
31 #endif
32 
38  )
39 {
40  return ((FxPkgPdo*) This)->PnpQueryResources(Irp);
41 }
42 
47  )
48 
49 /*++
50 
51 Routine Description:
52 
53  This method is invoked in response to a Pnp QueryResources IRP. We return
54  the resources that the device is currently consuming.
55 
56 Arguments:
57 
58  Irp - a pointer to the FxIrp
59 
60 Returns:
61 
62  NTSTATUS
63 
64 --*/
65 
66 {
68  ASSERTMSG("Not implemented for UMDF\n", FALSE);
69 
71 }
72 
78  )
79 {
80  return ((FxPkgPdo*) This)->PnpQueryResourceRequirements(Irp);
81 }
82 
87  )
88 
89 /*++
90 
91 Routine Description:
92 
93  This method is invoked in response to a Pnp QueryResourceRequirements IRP.
94  We return the set (of sets) of possible resources that we could accept
95  which would allow our device to work.
96 
97 Arguments:
98 
99  Irp - a pointer to the FxIrp
100 
101 Returns:
102 
103  NTSTATUS
104 
105 --*/
106 
107 {
109 
110  ASSERTMSG("Not implemented for UMDF\n", FALSE);
111 
112  return STATUS_NOT_IMPLEMENTED;
113 }
114 
116 NTSTATUS
119  __inout FxIrp *Irp
120  )
121 /*++
122 
123 Routine Description:
124  Filter resource requirements for the PDO. A chance to further muck with
125  the resources assigned to the device.
126 
127 Arguments:
128  This - the package
129 
130  Irp - the request
131 
132 Return Value:
133  NTSTATUS
134 
135  --*/
136 {
139 
140  ASSERTMSG("Not implemented for UMDF\n", FALSE);
141 
142  return STATUS_NOT_IMPLEMENTED;
143 }
144 
_Must_inspect_result_ NTSTATUS PnpQueryResources(__inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:49
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
LONG NTSTATUS
Definition: precomp.h:26
static _Must_inspect_result_ NTSTATUS _PnpFilterResourceRequirements(__inout FxPkgPnp *This, __inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:343
Definition: fxirp.hpp:28
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
_In_ PIRP Irp
Definition: csq.h:116
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
#define __inout
Definition: dbghelp.h:50
#define _Must_inspect_result_
Definition: ms_sal.h:558
static _Must_inspect_result_ NTSTATUS _PnpQueryResources(__inout FxPkgPnp *This, __inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:39
_Must_inspect_result_ NTSTATUS PnpQueryResourceRequirements(__inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:141
static _Must_inspect_result_ NTSTATUS _PnpQueryResourceRequirements(__inout FxPkgPnp *This, __inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:131