Example #1
0
        private unsafe uint Register(Guid controlGuid)
        {
            UnsafeNativeMethods.EtwTrace.TraceGuidRegistration guidReg = new UnsafeNativeMethods.EtwTrace.TraceGuidRegistration();
            Guid guid = new Guid("{b4955bf0-3af1-4740-b475-99055d3fe9aa}");

            this._etwProc     = new UnsafeNativeMethods.EtwTrace.EtwProc(this.MyCallback);
            guidReg.Guid      = &guid;
            guidReg.RegHandle = (void *)null;
            return(UnsafeNativeMethods.EtwTrace.RegisterTraceGuids(this._etwProc, (void *)null, ref controlGuid, 1U, ref guidReg, (string)null, (string)null, out this._registrationHandle));
        }
Example #2
0
 internal static extern unsafe uint RegisterTraceGuids([In] UnsafeNativeMethods.EtwTrace.EtwProc cbFunc, [In] void *context, [In] ref Guid controlGuid, [In] uint guidCount, ref UnsafeNativeMethods.EtwTrace.TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle);