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

Go to the source code of this file.

Classes

class  CMiniportWaveCyclic
 

Macros

#define PPORT_   PPORTWAVECYCLIC
 
#define PPORTSTREAM_   PUNKNOWN
 

Functions

NTSTATUS CreateMiniportWaveCyclicStream (OUT CMiniportWaveCyclicStream **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_   PPORTWAVECYCLIC

Definition at line 12 of file wavecyclicminiport.h.

◆ PPORTSTREAM_

#define PPORTSTREAM_   PUNKNOWN

Definition at line 13 of file wavecyclicminiport.h.

Function Documentation

◆ CreateMiniportWaveCyclicStream()

NTSTATUS CreateMiniportWaveCyclicStream ( OUT CMiniportWaveCyclicStream **  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 39 of file wavecyclicstream.cpp.

48{
49 PAGED_CODE ();
50
51 DOUT (DBG_PRINT, ("[CreateMiniportWaveCyclicStream]"));
52
53 //
54 // This is basically like the macro at stdunk with the change that we
55 // don't cast to interface unknown but to interface MiniportIchStream.
56 //
57 *MiniportCyclicStream = new (PoolType, PoolTag)
58 CMiniportWaveCyclicStream (pUnknownOuter);
59 if (*MiniportCyclicStream)
60 {
61 (*MiniportCyclicStream)->AddRef ();
62 return STATUS_SUCCESS;
63 }
64
66}
#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