ReactOS 0.4.15-dev-8127-g6338913
fxpkgpdoum.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxPkgPdoUM.cpp
8
9Abstract:
10
11 This module implements the Pnp package for Pdo devices.
12
13Author:
14
15Environment:
16
17 User mode only
18
19Revision History:
20
21--*/
22
23#include "../pnppriv.hpp"
24#include <wdmguid.h>
25
26// Tracing support
27#if defined(EVENT_TRACING)
28extern "C" {
29#include "FxPkgPdoUM.tmh"
30}
31#endif
32
38 )
39{
40 return ((FxPkgPdo*) This)->PnpQueryResources(Irp);
41}
42
47 )
48
49/*++
50
51Routine 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
56Arguments:
57
58 Irp - a pointer to the FxIrp
59
60Returns:
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
91Routine 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
97Arguments:
98
99 Irp - a pointer to the FxIrp
100
101Returns:
102
103 NTSTATUS
104
105--*/
106
107{
109
110 ASSERTMSG("Not implemented for UMDF\n", FALSE);
111
113}
114
120 )
121/*++
122
123Routine Description:
124 Filter resource requirements for the PDO. A chance to further muck with
125 the resources assigned to the device.
126
127Arguments:
128 This - the package
129
130 Irp - the request
131
132Return Value:
133 NTSTATUS
134
135 --*/
136{
139
140 ASSERTMSG("Not implemented for UMDF\n", FALSE);
141
143}
144
LONG NTSTATUS
Definition: precomp.h:26
Definition: fxirp.hpp:28
_Must_inspect_result_ NTSTATUS PnpQueryResourceRequirements(__inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:141
static _Must_inspect_result_ NTSTATUS _PnpFilterResourceRequirements(__inout FxPkgPnp *This, __inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:343
static _Must_inspect_result_ NTSTATUS _PnpQueryResourceRequirements(__inout FxPkgPnp *This, __inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:131
static _Must_inspect_result_ NTSTATUS _PnpQueryResources(__inout FxPkgPnp *This, __inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:39
_Must_inspect_result_ NTSTATUS PnpQueryResources(__inout FxIrp *Irp)
Definition: fxpkgpdokm.cpp:49
_In_ PIRP Irp
Definition: csq.h:116
#define __inout
Definition: dbghelp.h:50
#define FALSE
Definition: types.h:117
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define ASSERTMSG(msg, exp)
Definition: nt_native.h:431
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:239