ReactOS 0.4.15-dev-7681-g776c3a3
wavepciminiport.h File Reference
#include "shared.h"
#include "miniport.h"
Include dependency graph for wavepciminiport.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMiniportWaveICH
 

Macros

#define PPORT_   PPORTWAVEPCI
 
#define PPORTSTREAM_   PPORTWAVEPCISTREAM
 

Functions

NTSTATUS CreateMiniportWaveICHStream (OUT CMiniportWaveICHStream **pWaveIchStream, IN PUNKNOWN pUnknown, _When_((PoolType &NonPagedPoolMustSucceed) !=0, __drv_reportError("Must succeed pool allocations are forbidden. " "Allocation failures cause a system crash")) IN POOL_TYPE PoolType)
 

Macro Definition Documentation

◆ PPORT_

#define PPORT_   PPORTWAVEPCI

Definition at line 14 of file wavepciminiport.h.

◆ PPORTSTREAM_

#define PPORTSTREAM_   PPORTWAVEPCISTREAM

Definition at line 15 of file wavepciminiport.h.

Function Documentation

◆ CreateMiniportWaveICHStream()

NTSTATUS CreateMiniportWaveICHStream ( OUT CMiniportWaveICHStream **  pWaveIchStream,
IN PUNKNOWN  pUnknown,
_When_((PoolType &NonPagedPoolMustSucceed) !=0, __drv_reportError("Must succeed pool allocations are forbidden. " "Allocation failures cause a system crash")) IN POOL_TYPE  PoolType 
)

Definition at line 38 of file wavepcistream.cpp.

47{
48 PAGED_CODE ();
49
50 DOUT (DBG_PRINT, ("[CreateMiniportWaveICHStream]"));
51
52 //
53 // This is basically like the macro at stdunk with the change that we
54 // don't cast to interface unknown but to interface MiniportIchStream.
55 //
56 *MiniportPCIStream = new (PoolType, PoolTag)
57 CMiniportWaveICHStream (pUnknownOuter);
58 if (*MiniportPCIStream)
59 {
60 (*MiniportPCIStream)->AddRef ();
61 return STATUS_SUCCESS;
62 }
63
65}
#define PAGED_CODE()
#define DOUT(lvl, strings)
Definition: debug.h:82
#define STATUS_SUCCESS
Definition: shellext.h:65
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
Definition: wdfmemory.h:164
#define DBG_PRINT(ppi, ch, level)
Definition: win32kdebug.h:168