CollectionsListAllocateBufferAndSerialize 函式 (sensorsutils.h)
此例程會配置緩衝區,然後將感測器集合清單串行化給它。 成功時,呼叫端必須使用 SerializationBufferFree 來釋放緩衝區。
語法
NTSTATUS CollectionsListAllocateBufferAndSerialize(
[in] const PSENSOR_COLLECTION_LIST SourceCollection,
[out] ULONG *pTargetBufferSizeInBytes,
[out] BYTE **pTargetBuffer
);
參數
[in] SourceCollection
集合清單的指標。
[out] pTargetBufferSizeInBytes
配置的緩衝區大小(以位元組為單位)。
[out] pTargetBuffer
要保存串行化數據的已配置緩衝區指標。
傳回值
此函式會傳回NTSTATUS。
要求
要求 | 價值 |
---|---|
標頭 | sensorsutils.h |