OnlyState determines whether the event type is solely used for state management.
()
| 522 | |
| 523 | // OnlyState determines whether the event type is solely used for state management. |
| 524 | func (t Type) OnlyState() bool { |
| 525 | switch t { |
| 526 | case ProcessRundown, |
| 527 | ProcessRundownInternal, |
| 528 | CreateProcessInternal, |
| 529 | ThreadRundown, |
| 530 | ModuleRundown, |
| 531 | LoadModuleInternal, |
| 532 | FileRundown, |
| 533 | RegKCBRundown, |
| 534 | FileOpEnd, |
| 535 | ReleaseFile, |
| 536 | MapFileRundown, |
| 537 | RegCreateKCB, |
| 538 | RegDeleteKCB, |
| 539 | RegSetValueInternal: |
| 540 | return true |
| 541 | default: |
| 542 | return false |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | // CanEnrichStack determines if the event can be enriched with a callstack. |
| 547 | func (t Type) CanEnrichStack() bool { |