/** * @file XTPSkinManagerApiHookConfig.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPSKINMANAGERAPIHOOKCONFIG_H__) # define __XTPSKINMANAGERAPIHOOKCONFIG_H__ // Uncomment definition of XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK and re-build ToolkitPro // in order to use the legacy API hook implementation that has been in place // prior to introducing the Detours API hooks. // Refer to the "Microsoft Detours base API hook core for SkinFramework" FAQ article // - https://codejock.com/support/articles/mfc/skinframework/detours.asp //# define XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # if !defined(XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK) # if defined(_WIN32_WINNT) && (0x400 <= _WIN32_WINNT) # define XTP_SKINFRAMEWORK_USE_DETOURS_API_HOOK # else # define XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK # endif # endif # if (defined(_XTP_ACTIVEX) && !defined(XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK)) # define XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK # endif # if !defined(_M_IX86) && !defined(_M_X64) # error Unsupported target processor architecture. Only x86 and x64 are supported. # endif /** @cond */ #endif // !defined(__XTPSKINMANAGERAPIHOOKCONFIG_H__) /** @endcond */