ReactOS  0.4.14-dev-50-g13bb5e2
port.cpp File Reference
#include "private.hpp"
#include <debug.h>
Include dependency graph for port.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI PcNewPort (OUT PPORT *OutPort, IN REFCLSID ClassId)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file port.cpp.

Function Documentation

◆ PcNewPort()

NTSTATUS NTAPI PcNewPort ( OUT PPORT OutPort,
IN REFCLSID  ClassId 
)

Definition at line 20 of file port.cpp.

23 {
26 
27  DPRINT("PcNewPort entered\n");
28 
30 
31  if (!OutPort)
32  {
33  DPRINT("PcNewPort was supplied a NULL OutPort parameter\n");
35  }
36 
37  if (IsEqualGUIDAligned(ClassId, CLSID_PortMidi))
38  Status = NewPortDMus(OutPort);
39  else if (IsEqualGUIDAligned(ClassId, CLSID_PortDMus))
40  Status = NewPortDMus(OutPort);
41  else if (IsEqualGUIDAligned(ClassId, CLSID_PortTopology))
42  Status = NewPortTopology(OutPort);
43  else if (IsEqualGUIDAligned(ClassId, CLSID_PortWaveCyclic))
44  Status = NewPortWaveCyclic(OutPort);
45  else if (IsEqualGUIDAligned(ClassId, CLSID_PortWavePci))
46  Status = NewPortWavePci(OutPort);
47  else if (IsEqualGUIDAligned(ClassId, CLSID_PortWaveRT))
48  Status = NewPortWaveRT(OutPort);
49  else
50  {
51 
53  {
54  DPRINT("unknown interface %S\n", GuidString.Buffer);
56  }
57 
59  return Status;
60  }
61  DPRINT("PcNewPort Status %lx\n", Status);
62 
63  return Status;
64 }
static PWSTR GuidString
Definition: apphelp.c:91
NTSTATUS NewPortTopology(OUT PPORT *OutPort)
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NewPortWavePci(OUT PPORT *OutPort)
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:233
NTSTATUS NewPortWaveRT(OUT PPORT *OutPort)
void DPRINT(...)
Definition: polytest.cpp:61
NTSTATUS NewPortWaveCyclic(OUT PPORT *OutPort)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define PC_ASSERT_IRQL_EQUAL(x)
Definition: private.hpp:31
NTSTATUS NewPortDMus(OUT PPORT *OutPort)
Definition: port_dmus.cpp:510
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
Status
Definition: gdiplustypes.h:24
#define STATUS_NOT_SUPPORTED
Definition: ntstatus.h:409
return STATUS_SUCCESS
Definition: btrfs.c:2966

Referenced by InstallSubdevice(), and StartDevice().