2024-03-19 22:37:03 +01:00
|
|
|
//
|
|
|
|
// PCH.H (MinGW version)
|
|
|
|
//
|
|
|
|
|
2024-03-19 22:37:54 +01:00
|
|
|
#define _WIN32_IE 0x0200
|
|
|
|
|
2024-03-19 22:37:03 +01:00
|
|
|
#include <windows.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include <commctrl.h>
|
2024-03-19 22:38:33 +01:00
|
|
|
#include <shlobj.h>
|
2024-03-19 22:37:03 +01:00
|
|
|
#include <stdlib.h>
|
2024-03-19 23:35:30 +01:00
|
|
|
#include <malloc.h>
|
2024-03-19 23:35:29 +01:00
|
|
|
#include <stddef.h>
|
2024-03-19 22:37:54 +01:00
|
|
|
#include <ctype.h>
|
2024-03-19 22:37:03 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <direct.h>
|
2024-03-19 23:35:29 +01:00
|
|
|
#include <conio.h>
|
2024-03-19 22:38:33 +01:00
|
|
|
// #include <crtdbg.h> // missing file
|
2024-03-19 22:37:03 +01:00
|
|
|
|
2024-03-19 22:38:33 +01:00
|
|
|
#if !defined IDC_HAND // Win2k specific definition
|
|
|
|
#define IDC_HAND MAKEINTRESOURCE(32649)
|
2024-03-19 22:37:03 +01:00
|
|
|
#endif
|
|
|
|
|
2024-03-19 23:35:31 +01:00
|
|
|
#define __unaligned
|
|
|
|
|
2024-03-19 23:33:35 +01:00
|
|
|
// normally defined in STDLIB.H
|
|
|
|
#if !defined __max
|
|
|
|
#define __max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
#if !defined __min
|
|
|
|
#define __min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// normally defined in missing CRTDBG.H
|
2024-03-19 22:38:33 +01:00
|
|
|
#if !defined _ASSERT
|
2024-03-19 23:33:35 +01:00
|
|
|
#define _ASSERT(a)
|
2024-03-19 22:37:03 +01:00
|
|
|
#endif
|
2024-03-19 23:35:30 +01:00
|
|
|
#define _CrtSetDbgFlag(f)
|
2024-03-19 23:35:30 +01:00
|
|
|
|
|
|
|
#if !defined VERIFY
|
|
|
|
#if defined _DEBUG
|
|
|
|
#define VERIFY(f) _ASSERT(f)
|
|
|
|
#else // _DEBUG
|
|
|
|
#define VERIFY(f) ((VOID)(f))
|
|
|
|
#endif // _DEBUG
|
|
|
|
#endif // VERIFY
|
2024-03-19 23:35:31 +01:00
|
|
|
|
|
|
|
#if !defined PROCESS_POWER_THROTTLING_CURRENT_VERSION
|
|
|
|
#define PROCESS_POWER_THROTTLING_CURRENT_VERSION 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION
|
|
|
|
#define PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION 0x04
|
|
|
|
#endif
|
|
|
|
|
|
|
|
enum { ProcessPowerThrottling = 4 };
|
|
|
|
|
|
|
|
typedef struct _PROCESS_POWER_THROTTLING_STATE {
|
|
|
|
ULONG Version;
|
|
|
|
ULONG ControlMask;
|
|
|
|
ULONG StateMask;
|
|
|
|
} PROCESS_POWER_THROTTLING_STATE, * PPROCESS_POWER_THROTTLING_STATE;
|