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

Public Member Functions

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

Public Attributes

 IMP_IUnregisterPhysicalConnection
 

Protected Attributes

LONG m_Ref
 

Detailed Description

Definition at line 28 of file connection.cpp.

Constructor & Destructor Documentation

◆ CUnregisterPhysicalConnection()

CUnregisterPhysicalConnection::CUnregisterPhysicalConnection ( IUnknown OuterUnknown)
inline

Definition at line 51 of file connection.cpp.

51 {}

◆ ~CUnregisterPhysicalConnection()

virtual CUnregisterPhysicalConnection::~CUnregisterPhysicalConnection ( )
inlinevirtual

Definition at line 53 of file connection.cpp.

53 {}

Member Function Documentation

◆ QueryInterface()

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

Definition at line 62 of file connection.cpp.

65 {
67 
68  if (IsEqualGUIDAligned(refiid, IID_IUnregisterPhysicalConnection) ||
70  {
71  *Output = PVOID(PUNKNOWN(this));
72 
73  PUNKNOWN(*Output)->AddRef();
74  return STATUS_SUCCESS;
75  }
76 
78  {
79  DPRINT1("CUnregisterPhysicalConnection::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

◆ STDMETHODIMP_() [1/2]

CUnregisterPhysicalConnection::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 33 of file connection.cpp.

34  {
36  return m_Ref;
37  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CUnregisterPhysicalConnection::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 38 of file connection.cpp.

39  {
41 
42  if (!m_Ref)
43  {
44  delete this;
45  return 0;
46  }
47  return m_Ref;
48  }
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ IMP_IUnregisterPhysicalConnection

CUnregisterPhysicalConnection::IMP_IUnregisterPhysicalConnection

Definition at line 49 of file connection.cpp.

◆ m_Ref

LONG CUnregisterPhysicalConnection::m_Ref
protected

Definition at line 56 of file connection.cpp.

Referenced by STDMETHODIMP_().


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