EvtGetObjectArrayProperty function (winevt.h)
Gets a provider metadata property from the specified object in the array.
Syntax
BOOL EvtGetObjectArrayProperty(
[in] EVT_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray,
[in] DWORD PropertyId,
[in] DWORD ArrayIndex,
[in] DWORD Flags,
[in] DWORD PropertyValueBufferSize,
[in] PEVT_VARIANT PropertyValueBuffer,
[out] PDWORD PropertyValueBufferUsed
);
Parameters
[in] ObjectArray
A handle to an array of objects that the EvtGetPublisherMetadataProperty function returns.
[in] PropertyId
The property identifier of the metadata property that you want to get from the specified object. For possible values, see the Remarks section of EVT_PUBLISHER_METADATA_PROPERTY_ID.
[in] ArrayIndex
The zero-based index of the object in the array.
[in] Flags
Reserved. Must be zero.
[in] PropertyValueBufferSize
The size of the PropertyValueBuffer buffer, in bytes.
[in] PropertyValueBuffer
A caller-allocated buffer that will receive the metadata property. The buffer contains an EVT_VARIANT object. You can set this parameter to NULL to determine the required buffer size.
[out] PropertyValueBufferUsed
The size, in bytes, of the caller-allocated buffer that the function used or the required buffer size if the function fails with ERROR_INSUFFICIENT_BUFFER.
Return value
Return code/value | Description |
---|---|
|
The function succeeded. |
|
The function failed. To get the error code, call the GetLastError function. |
Remarks
When you call the EvtGetPublisherMetadataProperty function with the following IDs, the function returns a handle to an array of objects of that type:
- EvtPublisherMetadataChannelReferences
- EvtPublisherMetadataLevels
- EvtPublisherMetadataTasks
- EvtPublisherMetadataOpcodes
- EvtPublisherMetadataKeywords
To determine the size of the array, call the EvtGetObjectArraySize function.
Examples
For an example that shows how to use this function, see Getting a Provider's Metadata.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | winevt.h |
Library | Wevtapi.lib |
DLL | Wevtapi.dll |