// sensorsutils.h
NTSTATUS CollectionsListAllocateBufferAndSerialize(
[in] const PSENSOR_COLLECTION_LIST SourceCollection,
[out] ULONG *pTargetBufferSizeInBytes,
[out] BYTE **pTargetBuffer
);
View the official Windows Driver Kit DDI referenceNo description available.
This routine allocates a buffer and then serializes a sensor collection list to it. On success, callers must use SerializationBufferFree to free the buffer.
SourceCollection [in]Pointer to a collection list.
pTargetBufferSizeInBytes [out]The allocated buffer size (in bytes).
pTargetBuffer [out]Pointer to the allocated buffer, to hold the serialized data.
This function returns NTSTATUS.