Comments (1)
Hi @bobsira, krabsetw should be able to subscribe to EventSource
providers from both C# and C++:
- First, translate your
EventSource
provider name to an ETW provider ID: here's an example. - Next, use
RawProvider
(in C#) orkrabs::provider<>
(in C++) to subscribe to the ETW provider ID - When you receive an event callback:
- In C#, convert the contents of the event to a
ReadOnlySpan
and parse it accordingly:new ReadOnlySpan<byte>(record.UserData.ToPointer(), record.UserDataLength);
- In C++, use the
UserData
andUserDataLength
properties ofEVENT_RECORD
to access the contents of the event
- In C#, convert the contents of the event to a
from krabsetw.
Related Issues (20)
- [Help] i use c++ 11 and i create a payload filter then failed , status = ERROR_NOT_FOUND
- Add out type for the property (_TDH_OUT_TYPE) HOT 1
- need support vs2022
- Errors in file code
- No proper explanation for kernel_trace vs user_trace? HOT 3
- Correct way for copying every info related to a given event in my event callback and passing it to another thread? HOT 1
- Benefits and drawbacks of using a kernel_trace vs a user_trace for consuming an event which is in both? HOT 5
- Ability to control EVENT_FILTER_DESCRIPTOR HOT 1
- Expose ExtendedData HOT 1
- Does krabs c++ library support c++11? What about v120 platform toolset? HOT 1
- Possible ways to protect ETW trace sessions from getting stopped? HOT 1
- Why Service Control Manager provider doesn't generate any event id? HOT 2
- Can't query providers infomation using logman when setup a kernel trace using krabs::kernel::virtual_alloc_provider provider. HOT 1
- Does krabs etw handle trace closure in case of program crash? Can it cause a problem in enabling and starting the same session again? HOT 2
- both Windows XP and Windows 2008 support ETW. Why not support these two systems? HOT 1
- Couldn't installed KrabsETW nuget package via Visual Studio 2022
- NuGet feeds are not compliant with NuGet feed security requirements HOT 1
- Missing events when event burst happen even after setting the EVENT_TRACE_PROPERTIES to large number of buffers? HOT 3
- Getting PMC data HOT 1
- Could not load Microsoft.O365.Security.Native.ETW in C# .NET 6.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krabsetw.