ReactOS  0.4.13-dev-479-gec9c8fd
CUnregisterSubdevice Class Reference
Inheritance diagram for CUnregisterSubdevice:
Collaboration diagram for CUnregisterSubdevice:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
 CUnregisterSubdevice (IUnknown *OuterUnknown)
 
virtual ~CUnregisterSubdevice ()
 

Public Attributes

 IMP_IUnregisterSubdevice
 

Protected Attributes

LONG m_Ref
 

Detailed Description

Definition at line 17 of file unregister.cpp.

Constructor & Destructor Documentation

◆ CUnregisterSubdevice()

CUnregisterSubdevice::CUnregisterSubdevice ( IUnknown OuterUnknown)
inline

Definition at line 42 of file unregister.cpp.

42 : m_Ref(0) {}

◆ ~CUnregisterSubdevice()

virtual CUnregisterSubdevice::~CUnregisterSubdevice ( )
inlinevirtual

Definition at line 43 of file unregister.cpp.

43 {}

Member Function Documentation

◆ QueryInterface()

NTSTATUS NTAPI CUnregisterSubdevice::QueryInterface ( REFIID  InterfaceId,
PVOID Interface 
)

Definition at line 52 of file unregister.cpp.

55 {
57 
58  if (IsEqualGUIDAligned(refiid, IID_IUnregisterSubdevice) ||
60  {
62  PUNKNOWN(*Output)->AddRef();
63  return STATUS_SUCCESS;
64  }
65 
67  {
68  DPRINT1("IPortWaveCyclic_fnQueryInterface no interface!!! iface %S\n", GuidString.Buffer);
70  }
71 
72  return STATUS_UNSUCCESSFUL;
73 }
static PWSTR GuidString
Definition: apphelp.c:91
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
IUnregisterSubdevice * PUNREGISTERSUBDEVICE
Definition: portcls.h:633
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:233
void * PVOID
Definition: retypes.h:9
const GUID IID_IUnknown
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
ULONG AddRef()
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
Definition: arc.h:85
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
#define DPRINT1
Definition: precomp.h:8
return STATUS_SUCCESS
Definition: btrfs.c:2777

◆ STDMETHODIMP_() [1/2]

CUnregisterSubdevice::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file unregister.cpp.

23  {
25  return m_Ref;
26  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CUnregisterSubdevice::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file unregister.cpp.

28  {
30 
31  if (!m_Ref)
32  {
33  delete this;
34  return 0;
35  }
36  return m_Ref;
37  }
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ IMP_IUnregisterSubdevice

CUnregisterSubdevice::IMP_IUnregisterSubdevice

Definition at line 40 of file unregister.cpp.

◆ m_Ref

LONG CUnregisterSubdevice::m_Ref
protected

Definition at line 46 of file unregister.cpp.

Referenced by STDMETHODIMP_().


The documentation for this class was generated from the following file: