ReactOS  0.4.13-dev-544-gede3fdd
miniport.cpp File Reference
#include "private.hpp"
#include <debug.h>
Include dependency graph for miniport.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI PcNewMiniport (OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file miniport.cpp.

Function Documentation

◆ PcNewMiniport()

NTSTATUS NTAPI PcNewMiniport ( OUT PMINIPORT OutMiniport,
IN REFCLSID  ClassId 
)

Definition at line 19 of file miniport.cpp.

22 {
24 
25  DPRINT("PcNewMiniport entered\n");
27 
28  if (!OutMiniport)
29  {
30  DPRINT("PcNewMiniport was supplied a NULL OutPort parameter\n");
32  }
33 
34  if (IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverDMusUART) ||
35  IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverUart) ||
36  IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverDMusUARTCapture))
37  {
38  Status = NewMiniportDMusUART(OutMiniport, ClassId);
39  }
40  else if (IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverFmSynth) ||
41  IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverFmSynthWithVol))
42  {
43  Status = NewMiniportFmSynth(OutMiniport, ClassId);
44  }
45  else
46  {
48  }
49 
50  DPRINT("PcNewMiniport Status %x\n", Status);
51  return Status;
52 }
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONG NTSTATUS
Definition: precomp.h:26
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:233
NTSTATUS NewMiniportFmSynth(OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
void DPRINT(...)
Definition: polytest.cpp:61
NTSTATUS NewMiniportDMusUART(OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
#define PC_ASSERT_IRQL_EQUAL(x)
Definition: private.hpp:31
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
Status
Definition: gdiplustypes.h:24

Referenced by InstallSubdevice(), and StartDevice().