ReactOS 0.4.15-dev-7906-g1b85a5f
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 12 of file port.cpp.

Function Documentation

◆ PcNewPort()

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

Definition at line 17 of file port.cpp.

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

Referenced by InstallSubdevice(), and StartDevice().