private void EtwRegister() { if (s_platformNotSupported) { throw new PlatformNotSupportedException(System.SR.GetString("NotSupported_DownLevelVista")); } this.m_etwCallback = new Microsoft.Win32.UnsafeNativeMethods.EtwEnableCallback(this.EtwEnableCallBack); uint num = Microsoft.Win32.UnsafeNativeMethods.EventRegister(ref this.m_providerId, this.m_etwCallback, null, ref this.m_regHandle); if (num != 0) { throw new Win32Exception((int)num); } }
private void EtwRegister() { if (s_platformNotSupported) { throw new PlatformNotSupportedException(System.SR.GetString("NotSupported_DownLevelVista")); } this.m_etwCallback = new Microsoft.Win32.UnsafeNativeMethods.EtwEnableCallback(this.EtwEnableCallBack); uint num = Microsoft.Win32.UnsafeNativeMethods.EventRegister(ref this.m_providerId, this.m_etwCallback, null, ref this.m_regHandle); if (num != 0) { throw new Win32Exception((int) num); } }