77 DPRINT1(
"IResourceList_QueryInterface no interface!!! iface %S\n",
GuidString.Buffer);
86CResourceList::NumberOfEntries()
95CResourceList::NumberOfEntriesOfType(
115 if (PartialDescriptor->
Type ==
Type)
128CResourceList::FindTranslatedEntry(
149 if (PartialDescriptor->
Type ==
Type)
155 return PartialDescriptor;
169CResourceList::FindUntranslatedEntry(
191 if (PartialDescriptor->
Type ==
Type)
197 return PartialDescriptor;
211CResourceList::AddEntry(
250CResourceList::AddEntryFromParent(
264 if (Translated && Untranslated)
267 return AddEntry(Translated, Untranslated);
276CResourceList::TranslatedList()
285CResourceList::UntranslatedList()
307 if (!TranslatedResourceList)
310 if (UntranslatedResourceList)
319 if (!UntranslatedResourceList)
341 if (!TranslatedResourceList)
348 ASSERT(UntranslatedResourceList->List[0].PartialResourceList.Count == TranslatedResourceList->List[0].PartialResourceList.Count);
351 ResourceCount = UntranslatedResourceList->List[0].PartialResourceList.Count;
360 if (!NewTranslatedResources)
369 if (!NewUntranslatedResources)
378 RtlCopyMemory(NewTranslatedResources, TranslatedResourceList, ResourceSize);
379 RtlCopyMemory(NewUntranslatedResources, UntranslatedResourceList, ResourceSize);
405 if (!OutResourceList || !ParentList || !MaximumEntries)
454 *OutResourceList = (IResourceList*)NewList;
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
PCM_RESOURCE_LIST m_TranslatedResourceList
CResourceList(IUnknown *OuterUnknown)
PCM_RESOURCE_LIST m_UntranslatedResourceList
#define NT_SUCCESS(StatCode)
static BOOL AddEntry(WCHAR Type, LPCWSTR Value)
struct _CM_RESOURCE_LIST CM_RESOURCE_LIST
struct _CM_RESOURCE_LIST * PCM_RESOURCE_LIST
static ULONG ResourceCount
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
PVOID AllocateItem(IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes)
VOID FreeItem(IN PVOID Item)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
IResourceList * PRESOURCELIST
#define PC_ASSERT_IRQL_EQUAL(x)
PORTCLASSAPI NTSTATUS NTAPI PcNewResourceSublist(OUT PRESOURCELIST *OutResourceList, IN PUNKNOWN OuterUnknown OPTIONAL, IN POOL_TYPE PoolType, IN PRESOURCELIST ParentList, IN ULONG MaximumEntries)
PORTCLASSAPI NTSTATUS NTAPI PcNewResourceList(OUT PRESOURCELIST *OutResourceList, IN PUNKNOWN OuterUnknown OPTIONAL, IN POOL_TYPE PoolType, IN PCM_RESOURCE_LIST TranslatedResourceList, IN PCM_RESOURCE_LIST UntranslatedResourceList)
PULONG MinorVersion OPTIONAL
CM_PARTIAL_RESOURCE_LIST PartialResourceList
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1]
CM_FULL_RESOURCE_DESCRIPTOR List[1]
#define FIELD_OFFSET(t, f)
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_Must_inspect_result_ _In_ WDFCMRESLIST List
#define IsEqualGUIDAligned(guid1, guid2)