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

Public Member Functions

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

Public Attributes

 IMP_IPortClsVersion
 

Protected Attributes

LONG m_Ref
 

Detailed Description

Definition at line 17 of file version.cpp.

Constructor & Destructor Documentation

◆ CPortClsVersion()

CPortClsVersion::CPortClsVersion ( IUnknown OuterUnknown)
inline

Definition at line 41 of file version.cpp.

42  {
43  m_Ref = 0;
44  }

◆ ~CPortClsVersion()

virtual CPortClsVersion::~CPortClsVersion ( )
inlinevirtual

Definition at line 45 of file version.cpp.

46  {
47 
48  }

Member Function Documentation

◆ QueryInterface()

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

Definition at line 63 of file version.cpp.

66 {
68 
69  if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion) ||
71  {
72  *Output = PVOID(PPORTCLSVERSION(this));
73  PUNKNOWN(*Output)->AddRef();
74  return STATUS_SUCCESS;
75  }
76 
78  {
79  DPRINT1("CPortClsVersion::QueryInterface no interface!!! iface %S\n", GuidString.Buffer);
81  }
82 
83  return STATUS_UNSUCCESSFUL;
84 }
static PWSTR GuidString
Definition: apphelp.c:91
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
#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
IPortClsVersion * PPORTCLSVERSION
Definition: portcls.h:2209

◆ STDMETHODIMP_() [1/2]

CPortClsVersion::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file version.cpp.

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

◆ STDMETHODIMP_() [2/2]

CPortClsVersion::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file version.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_IPortClsVersion

CPortClsVersion::IMP_IPortClsVersion

Definition at line 39 of file version.cpp.

◆ m_Ref

LONG CPortClsVersion::m_Ref
protected

Definition at line 51 of file version.cpp.

Referenced by CPortClsVersion(), and STDMETHODIMP_().


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