Structures

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

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

szMessageKeyMessage key that restricts access to messages created with this component. If this string is empty () then access is unrestricted.

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

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