ReactOS 0.4.15-dev-8127-g6338913
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 17 of file resource.cpp.

Constructor & Destructor Documentation

◆ CResourceList()

CResourceList::CResourceList ( IUnknown OuterUnknown)
inline

Definition at line 24 of file resource.cpp.

24 :
25 m_OuterUnknown(OuterUnknown),
31 {
32 }
POOL_TYPE m_PoolType
Definition: resource.cpp:37
PUNKNOWN m_OuterUnknown
Definition: resource.cpp:36
ULONG m_MaxEntries
Definition: resource.cpp:41
PCM_RESOURCE_LIST m_TranslatedResourceList
Definition: resource.cpp:38
ULONG m_NumberOfEntries
Definition: resource.cpp:40
PCM_RESOURCE_LIST m_UntranslatedResourceList
Definition: resource.cpp:39
#define NonPagedPool
Definition: env_spec_w32.h:307

◆ ~CResourceList()

CResourceList::~CResourceList ( )
virtual

Definition at line 44 of file resource.cpp.

45{
47 {
48 /* Free resource list */
50 }
51
53 {
54 /* Free resource list */
56 }
57}
VOID FreeItem(IN PVOID Item)
Definition: misc.c:37
#define TAG_PORTCLASS
Definition: private.hpp:24

Member Function Documentation

◆ QueryInterface()

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

Definition at line 61 of file resource.cpp.

64{
66
67 if (IsEqualGUIDAligned(refiid, IID_IResourceList) ||
69 {
70 *Output = PVOID(PRESOURCELIST(this));
71 PUNKNOWN(*Output)->AddRef();
72 return STATUS_SUCCESS;
73 }
74
76 {
77 DPRINT1("IResourceList_QueryInterface no interface!!! iface %S\n", GuidString.Buffer);
79 }
80
82}
#define DPRINT1
Definition: precomp.h:8
const GUID IID_IUnknown
IUnknown * PUNKNOWN
Definition: com_apitest.h:45
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
ULONG AddRef()
static PWSTR GuidString
Definition: apphelp.c:93
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
IResourceList * PRESOURCELIST
Definition: portcls.h:442
@ Output
Definition: arc.h:85
#define STATUS_SUCCESS
Definition: shellext.h:65
void * PVOID
Definition: typedefs.h:50
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:235

Referenced by PcNewResourceList().

Member Data Documentation

◆ IMP_IResourceList

CResourceList::IMP_IResourceList

Definition at line 22 of file resource.cpp.

◆ m_MaxEntries

ULONG CResourceList::m_MaxEntries

Definition at line 41 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_NumberOfEntries

ULONG CResourceList::m_NumberOfEntries

Definition at line 40 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_OuterUnknown

PUNKNOWN CResourceList::m_OuterUnknown

Definition at line 36 of file resource.cpp.

Referenced by PcNewResourceSublist().

◆ m_PoolType

POOL_TYPE CResourceList::m_PoolType

Definition at line 37 of file resource.cpp.

Referenced by PcNewResourceList(), and PcNewResourceSublist().

◆ m_TranslatedResourceList

PCM_RESOURCE_LIST CResourceList::m_TranslatedResourceList

Definition at line 38 of file resource.cpp.

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

◆ m_UntranslatedResourceList

PCM_RESOURCE_LIST CResourceList::m_UntranslatedResourceList

Definition at line 39 of file resource.cpp.

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


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