ReactOS  0.4.14-dev-1036-g3c5b10f
CResourceList Class Reference
Inheritance diagram for CResourceList:
Collaboration diagram for CResourceList:

Public Member Functions

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

Public Attributes

 IMP_IResourceList
 
PUNKNOWN m_OuterUnknown
 
POOL_TYPE m_PoolType
 
PCM_RESOURCE_LIST m_TranslatedResourceList
 
PCM_RESOURCE_LIST m_UntranslatedResourceList
 
ULONG m_NumberOfEntries
 
ULONG m_MaxEntries
 
LONG m_Ref
 

Detailed Description

Definition at line 20 of file resource.cpp.

Constructor & Destructor Documentation

◆ CResourceList()

CResourceList::CResourceList ( IUnknown OuterUnknown)
inline

Definition at line 44 of file resource.cpp.

ULONG m_NumberOfEntries
Definition: resource.cpp:52
PCM_RESOURCE_LIST m_UntranslatedResourceList
Definition: resource.cpp:51
PUNKNOWN m_OuterUnknown
Definition: resource.cpp:48
ULONG m_MaxEntries
Definition: resource.cpp:53
POOL_TYPE m_PoolType
Definition: resource.cpp:49
PCM_RESOURCE_LIST m_TranslatedResourceList
Definition: resource.cpp:50

◆ ~CResourceList()

CResourceList::~CResourceList ( )
virtual

Definition at line 57 of file resource.cpp.

58 {
60  {
61  /* Free resource list */
63  }
64 
66  {
67  /* Free resource list */
69  }
70 }
#define TAG_PORTCLASS
Definition: private.hpp:24
VOID FreeItem(IN PVOID Item)
Definition: misc.c:43
PCM_RESOURCE_LIST m_UntranslatedResourceList
Definition: resource.cpp:51
PCM_RESOURCE_LIST m_TranslatedResourceList
Definition: resource.cpp:50

Member Function Documentation

◆ QueryInterface()

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

Definition at line 74 of file resource.cpp.

77 {
79 
80  if (IsEqualGUIDAligned(refiid, IID_IResourceList) ||
82  {
83  *Output = PVOID(PRESOURCELIST(this));
84  PUNKNOWN(*Output)->AddRef();
85  return STATUS_SUCCESS;
86  }
87 
89  {
90  DPRINT1("IResourceList_QueryInterface no interface!!! iface %S\n", GuidString.Buffer);
92  }
93 
94  return STATUS_UNSUCCESSFUL;
95 }
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
IResourceList * PRESOURCELIST
Definition: portcls.h:442
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
#define DPRINT1
Definition: precomp.h:8
return STATUS_SUCCESS
Definition: btrfs.c:2938

Referenced by PcNewResourceList().

◆ STDMETHODIMP_() [1/2]

CResourceList::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 25 of file resource.cpp.

26  {
28  return m_Ref;
29  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CResourceList::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 30 of file resource.cpp.

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

Member Data Documentation

◆ IMP_IResourceList

CResourceList::IMP_IResourceList

Definition at line 42 of file resource.cpp.

◆ m_MaxEntries

ULONG CResourceList::m_MaxEntries

Definition at line 53 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_NumberOfEntries

ULONG CResourceList::m_NumberOfEntries

Definition at line 52 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_OuterUnknown

PUNKNOWN CResourceList::m_OuterUnknown

Definition at line 48 of file resource.cpp.

Referenced by PcNewResourceSublist().

◆ m_PoolType

POOL_TYPE CResourceList::m_PoolType

Definition at line 49 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_Ref

LONG CResourceList::m_Ref

Definition at line 54 of file resource.cpp.

Referenced by PcNewResourceSublist(), and STDMETHODIMP_().

◆ m_TranslatedResourceList

PCM_RESOURCE_LIST CResourceList::m_TranslatedResourceList

Definition at line 50 of file resource.cpp.

Referenced by PcNewResourceList(), PcNewResourceSublist(), and ~CResourceList().

◆ m_UntranslatedResourceList

PCM_RESOURCE_LIST CResourceList::m_UntranslatedResourceList

Definition at line 51 of file resource.cpp.

Referenced by PcNewResourceList(), PcNewResourceSublist(), and ~CResourceList().


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