ReactOS  0.4.15-dev-4857-g47842d7
CResourceList Class Reference
Inheritance diagram for CResourceList:
Collaboration diagram for CResourceList:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 CResourceList (IUnknown *OuterUnknown)
 
virtual ~CResourceList ()
 
- Public Member Functions inherited from CUnknownImpl< IResourceList >
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 

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
 

Additional Inherited Members

- Protected Member Functions inherited from CUnknownImpl< IResourceList >
 CUnknownImpl ()
 
virtual ~CUnknownImpl ()
 

Detailed Description

Definition at line 20 of file resource.cpp.

Constructor & Destructor Documentation

◆ CResourceList()

CResourceList::CResourceList ( IUnknown OuterUnknown)
inline

Definition at line 27 of file resource.cpp.

27  :
28  m_OuterUnknown(OuterUnknown),
33  m_MaxEntries(0)
34  {
35  }
ULONG m_NumberOfEntries
Definition: resource.cpp:43
PCM_RESOURCE_LIST m_UntranslatedResourceList
Definition: resource.cpp:42
PUNKNOWN m_OuterUnknown
Definition: resource.cpp:39
ULONG m_MaxEntries
Definition: resource.cpp:44
POOL_TYPE m_PoolType
Definition: resource.cpp:40
PCM_RESOURCE_LIST m_TranslatedResourceList
Definition: resource.cpp:41

◆ ~CResourceList()

CResourceList::~CResourceList ( )
virtual

Definition at line 47 of file resource.cpp.

48 {
50  {
51  /* Free resource list */
53  }
54 
56  {
57  /* Free resource list */
59  }
60 }
#define TAG_PORTCLASS
Definition: private.hpp:24
VOID FreeItem(IN PVOID Item)
Definition: misc.c:43
PCM_RESOURCE_LIST m_UntranslatedResourceList
Definition: resource.cpp:42
PCM_RESOURCE_LIST m_TranslatedResourceList
Definition: resource.cpp:41

Member Function Documentation

◆ QueryInterface()

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

Definition at line 64 of file resource.cpp.

67 {
69 
70  if (IsEqualGUIDAligned(refiid, IID_IResourceList) ||
72  {
73  *Output = PVOID(PRESOURCELIST(this));
74  PUNKNOWN(*Output)->AddRef();
75  return STATUS_SUCCESS;
76  }
77 
79  {
80  DPRINT1("IResourceList_QueryInterface no interface!!! iface %S\n", GuidString.Buffer);
82  }
83 
84  return STATUS_UNSUCCESSFUL;
85 }
static PWSTR GuidString
Definition: apphelp.c:93
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:235
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
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by PcNewResourceList().

Member Data Documentation

◆ IMP_IResourceList

CResourceList::IMP_IResourceList

Definition at line 25 of file resource.cpp.

◆ m_MaxEntries

ULONG CResourceList::m_MaxEntries

Definition at line 44 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_NumberOfEntries

ULONG CResourceList::m_NumberOfEntries

Definition at line 43 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_OuterUnknown

PUNKNOWN CResourceList::m_OuterUnknown

Definition at line 39 of file resource.cpp.

Referenced by PcNewResourceSublist().

◆ m_PoolType

POOL_TYPE CResourceList::m_PoolType

Definition at line 40 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_TranslatedResourceList

PCM_RESOURCE_LIST CResourceList::m_TranslatedResourceList

Definition at line 41 of file resource.cpp.

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

◆ m_UntranslatedResourceList

PCM_RESOURCE_LIST CResourceList::m_UntranslatedResourceList

Definition at line 42 of file resource.cpp.

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


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