97 InitialOffset = CurrentOffset;
102 TargetCollection = (
PHID_COLLECTION)(&CollectionContext->RawData[CurrentOffset]);
117 CurrentOffset += CollectionSize;
122 ASSERT(CurrentOffset < CollectionContext->
Size);
137 ASSERT(CurrentOffset + ReportSize < CollectionContext->
Size);
152 CurrentOffset += ReportSize;
155 ASSERT(CurrentOffset <= CollectionContext->
Size);
175 ASSERT(CurrentOffset < CollectionContext->
Size);
181 return CurrentOffset - InitialOffset;
191 ULONG CollectionSize;
209 DPRINT(
"CollectionContext %p\n", CollectionContext);
210 DPRINT(
"CollectionContext RawData %p\n", CollectionContext->
RawData);
211 DPRINT(
"CollectionContext Size %lu\n", CollectionContext->
Size);
238 if (Report->
Type == ReportType)
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T ContextSize
#define HIDP_STATUS_SUCCESS
PHID_COLLECTION HidParser_GetCollectionFromContext(IN PVOID Context)
PHID_REPORT HidParser_SearchReportInCollection(IN PHID_COLLECTION_CONTEXT CollectionContext, IN PHID_COLLECTION Collection, IN UCHAR ReportType)
ULONG HidParser_StoreCollection(IN PHID_COLLECTION Collection, IN PHID_COLLECTION_CONTEXT CollectionContext, IN ULONG CurrentOffset)
PHID_REPORT HidParser_GetReportInCollection(IN PVOID Context, IN UCHAR ReportType)
ULONG HidParser_GetCollectionCount(IN PHID_COLLECTION_CONTEXT CollectionContext, IN PHID_COLLECTION Collection)
struct HID_COLLECTION_CONTEXT * PHID_COLLECTION_CONTEXT
ULONG HidParser_CalculateContextSize(IN PHID_COLLECTION Collection)
ULONG HidParser_GetTotalCollectionCount(IN PVOID Context)
NTSTATUS HidParser_BuildCollectionContext(IN PHID_COLLECTION RootCollection, IN PVOID Context, IN ULONG ContextSize)
ULONG HidParser_CalculateCollectionSize(IN PHID_COLLECTION Collection)
struct __HID_COLLECTION__ HID_COLLECTION
struct _HID_REPORT * PHID_REPORT
struct _HID_REPORT HID_REPORT
struct __HID_COLLECTION__ * PHID_COLLECTION
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ WDFCOLLECTION Collection
_Inout_ PSIZE_T _In_opt_ PMDLX _In_ MM_ROTATE_DIRECTION _In_ PMM_ROTATE_COPY_CALLBACK_FUNCTION CopyFunction