For each Event Category, SelectReturnedAttributes sets the attributes to be returned
with event notifications in the IOPCEventSink::OnEvent callback.
This method can be called multiple times in order to specify the attributes to
return for each unique event type and event category pair. For a given event
type and event category pair, the attributes returned can be “cleared” by setting
the AttributeIDs array length to zero. If this is called multiple times for the same event
type and event category pair, then the latest call will be in effect.
Syntax
Parameters
- EventCategory
- The specific event category for which the list of attributes applies.
These are returned from the QueryEventCategories method.
- AttributeIDs
- The list IDs of the attributes to return with event notifications for
the event type and event category specified.
These are returned from the QueryEventAttributes method.
Return Value
HRESULTS error/success code.
Requirements
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x
See Also