2025-04-27 07:49:33 -04:00

65 lines
1.7 KiB
C

/*
* Common include for all stdafx.h project headers
* This includes all common external headers that will be precompiled
* All external headers must be available via the include path
*/
#ifndef DUI_COMMONSTDAFX_H_INCLUDED
#define DUI_COMMONSTDAFX_H_INCLUDED
#pragma once
// Engine warning pragmas
#pragma warning (disable:4710) // W4: Compiler decided not to inline function
#pragma warning (disable:4201) // W4: Nameless struct/union may not be compiler portable
// Exclude rarely-used stuff from Windows headers
#if !defined(WIN32_LEAN_AND_MEAN)
#define WIN32_LEAN_AND_MEAN
#endif
// TODO: Remove this when updated headers are available
#if !defined(_WIN32_WINNT)
#define _WIN32_WINNT 0x0500
#endif
// Windows Header Files
#ifndef WINVER
#define WINVER 0x0500
#endif
#include <windows.h> // Windows
#include <windowsx.h> // User macros
// COM Header Files
#include <objbase.h> // CoCreateInstance, IUnknown
// Related services
#ifdef GADGET_ENABLE_GDIPLUS
#pragma warning(push, 3)
#include <GdiPlus.h> // GDI+
#pragma warning(pop)
#endif // GADGET_ENABLE_GDIPLUS
// C RunTime Header Files
#include <stdlib.h> // Standard library
#include <malloc.h> // Memory allocation
#include <wchar.h> // Character routines
#include <process.h> // Multi-threaded routines
// Themes support
#include <uxtheme.h>
// DirectUser headers
#define GADGET_ENABLE_TRANSITIONS
#define GADGET_ENABLE_CONTROLS
#include <DUser.h> // DirectUser
#include <DUserCtrl.h>
#ifdef GADGET_ENABLE_GDIPLUS
#include <RenderUtil.h>
#endif
#endif // DUI_COMMONSTDAFX_H_INCLUDED