Exemplo n.º 1
0
 internal static extern unsafe uint RegisterTraceGuids(
     [In] EtwProc cbFunc,
     [In] void *context,
     [In] ref Guid controlGuid,
     [In] uint guidCount,
     ref TraceGuidRegistration guidReg,
     [In] string mofImagePath,
     [In] string mofResourceName,
     out ulong regHandle);
Exemplo n.º 2
0
        private unsafe uint Register(Guid controlGuid)
        {
            TraceGuidRegistration guidReg = new TraceGuidRegistration();
            Guid guid = new Guid(3029687280U, 15089, 18240, 180, 117, 153, 5, 93, 63, 233, 170);

            this._etwProc     = new EtwProc(this.ControllerChangeCallback);
            guidReg.Guid      = &guid;
            guidReg.RegHandle = null;
            return(RegisterTraceGuids(this._etwProc, null, ref controlGuid, 1U, ref guidReg, null, null, out this._registrationHandle));
        }