diff options
author | Rahul Kumar <rahku@microsoft.com> | 2017-03-29 15:31:29 -0700 |
---|---|---|
committer | Rahul Kumar <rahku@microsoft.com> | 2017-03-31 14:32:33 -0700 |
commit | 201c70cc49ff2027fb8ed0ba5e25f56534b04a96 (patch) | |
tree | 1e223c126c1a5c4819b6aa37492003aabd581d8d /src/vm/eventtrace.cpp | |
parent | 07fa3a32336d2da5d2bf652ad01d33f18b2debaf (diff) | |
download | coreclr-201c70cc49ff2027fb8ed0ba5e25f56534b04a96.tar.gz coreclr-201c70cc49ff2027fb8ed0ba5e25f56534b04a96.tar.bz2 coreclr-201c70cc49ff2027fb8ed0ba5e25f56534b04a96.zip |
1. Remove disable of C4996
2. delete some dead code
3. Remove implementation of GetOSVersion and hardcode OS version to be 0.0.0
4. Add implementation of IsWindows8OrAbove & IsWinrtSupported (donno why this was deleted earlier)
5. remove GetVersionEx from PAL
Diffstat (limited to 'src/vm/eventtrace.cpp')
-rw-r--r-- | src/vm/eventtrace.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/vm/eventtrace.cpp b/src/vm/eventtrace.cpp index b708f17e34..1eb89385a6 100644 --- a/src/vm/eventtrace.cpp +++ b/src/vm/eventtrace.cpp @@ -4310,27 +4310,6 @@ HRESULT ETW::CEtwTracer::Register() { WRAPPER_NO_CONTRACT; -#ifndef FEATURE_CORESYSTEM - OSVERSIONINFO osVer; - osVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - - if (GetOSVersion(&osVer) == FALSE) { - return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); - } - else if (osVer.dwMajorVersion < ETW_SUPPORTED_MAJORVER) { - return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); - } - - // if running on OS < Longhorn, skip registration unless reg key is set - // since ETW reg is expensive (in both time and working set) on older OSes - if (osVer.dwMajorVersion < ETW_ENABLED_MAJORVER && !g_fEnableETW && !CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_PreVistaETWEnabled)) - return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); - - // If running on OS >= Longhorn, skip registration if ETW is not enabled - if (osVer.dwMajorVersion >= ETW_ENABLED_MAJORVER && !g_fEnableETW && !CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_VistaAndAboveETWEnabled)) - return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); -#endif - EventRegisterMicrosoft_Windows_DotNETRuntime(); EventRegisterMicrosoft_Windows_DotNETRuntimePrivate(); EventRegisterMicrosoft_Windows_DotNETRuntimeRundown(); |