Registers each category the component will use. Components are not required to use categories, so this function is optional.
Event categories provide some context as to how an event is used and help the Visual Studio Analyzer user locate a particular event or group of events.
Syntax
HRESULT VSARegisterEventCategory([in, string] wchar_t *guidSourceID,
[in, string] wchar_t *guidCategoryID,
[in, string] wchar_t *guidParentID,
[in, string] wchar_t *strVisibleName,
[in, string] wchar_t *strDescription);
Parameters
guidSourceID
A unique identifier for this component.
guidCategoryID
A unique identifier for this event category.
guidParentID
The parent category, or NULL if the category is at the top level.
strVisibleName
The name of the category. This name is visible to the user. You must use ANSI characters for the name.
strDescription
The description of the event category. This name is visible to the user. You must use ANSI characters for the description.