Skip to content
Diamond Sierra

Structures

Components and Contexts Overview,Working With Components and Contexts

Updated · By Diamond Sierra

On this page

Components and Contexts Overview,Working With Components and Contexts

Definitions

typedef struct tagPB_COMPONENT

{

WCHARszName[PB_MAX_STR_LEN];

WCHARszMessageKey[PB_MAX_STR_LEN];

BOOLblEnabled;

ULONGulExclude;

} PB_COMPONENT;

typedef struct tagPB_CONTEXT

{

WCHARszName[PB_MAX_STR_LEN];

BOOLblEnabled;

ULONGulExclude;

} PB_CONTEXT;

Elements

szName String that will appear in the viewer as the component/context field of log messages that are created with this component/context structure.

szMessageKey Message key that restricts access to messages created with this component. If this string is empty (“”) then access is unrestricted.

blEnabled Flag to enable or disable all logging using this component/context.

ulExclude Bit flags to disable logging of specific message types when using this component/context. E.g. ulExclude = _PB_VERBOSE | _PB_INFO.