internal unsafe override void Register(Guid providerGuid) { _etwEnabledCallback =new ManifestEtw.EtwEnableCallback(EtwEnableCallback); ulong registrationHandle = 0; ManifestEtw.EventRegister(ref providerGuid, _etwEnabledCallback, null, ref registrationHandle); _registrationHandle.Value = registrationHandle; }
private uint EventRegister(ref Guid providerId, ManifestEtw.EtwEnableCallback enableCallback) { s_isClassic = this.m_isClassic = Environment.OSVersion.Version.Major < 6; this.m_providerId = providerId; this.m_etwCallback = enableCallback; if (!this.m_isClassic) { return ManifestEtw.EventRegister(ref providerId, enableCallback, null, ref this.m_regHandle); } return this.ClassicShimRegister(providerId, enableCallback); }
internal void Register(Guid providerGuid) { this.m_providerId = providerGuid; this.m_etwCallback = new ManifestEtw.EtwEnableCallback(this.EtwEnableCallBack); uint num = this.EventRegister(ref this.m_providerId, this.m_etwCallback); if (num != 0) { throw new ArgumentException(Win32Native.GetMessage((int) num)); } }
internal unsafe void Register(Guid providerGuid) { m_providerId = providerGuid; uint status; m_etwCallback = new ManifestEtw.EtwEnableCallback(EtwEnableCallBack); status = EventRegister(ref m_providerId, m_etwCallback); if (status != 0) { throw new ArgumentException(Win32Native.GetMessage(unchecked((int)status))); } }