2024-03-19 22:22:29 +01:00
|
|
|
//
|
|
|
|
// PCH.H
|
|
|
|
//
|
|
|
|
|
2024-03-19 22:37:54 +01:00
|
|
|
#define _WIN32_IE 0x0200
|
2024-03-19 23:35:29 +01:00
|
|
|
#define _CRT_SECURE_NO_DEPRECATE
|
2024-03-19 23:35:30 +01:00
|
|
|
#define _CRTDBG_MAP_ALLOC
|
2024-03-19 23:35:30 +01:00
|
|
|
#define _WINSOCK_DEPRECATED_NO_WARNINGS
|
2024-03-19 22:37:54 +01:00
|
|
|
|
2024-03-19 23:35:30 +01:00
|
|
|
#include <winsock2.h>
|
2024-03-19 22:22:29 +01:00
|
|
|
#include <windows.h>
|
2024-03-19 22:37:03 +01:00
|
|
|
#include <tchar.h>
|
2024-03-19 22:24:30 +01:00
|
|
|
#include <shellapi.h>
|
2024-03-19 22:37:03 +01:00
|
|
|
#include <commctrl.h>
|
2024-03-19 22:38:33 +01:00
|
|
|
#include <shlobj.h>
|
2024-03-19 22:22:29 +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:22:29 +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>
|
|
|
|
|
2024-03-19 23:33:35 +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:30 +01:00
|
|
|
#if !defined INVALID_SET_FILE_POINTER
|
2024-03-19 23:35:29 +01:00
|
|
|
#define INVALID_SET_FILE_POINTER ((DWORD)-1)
|
|
|
|
#endif
|
|
|
|
|
2024-03-19 23:35:30 +01:00
|
|
|
#if !defined INVALID_FILE_ATTRIBUTES
|
|
|
|
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
|
|
|
|
#endif
|
|
|
|
|
2024-03-19 23:35:30 +01:00
|
|
|
#if !defined GWLP_USERDATA
|
|
|
|
#define GWLP_USERDATA GWL_USERDATA
|
|
|
|
#endif
|
|
|
|
|
2024-03-19 23:35:30 +01:00
|
|
|
#if !defined GCLP_HCURSOR
|
|
|
|
#define GCLP_HCURSOR GCL_HCURSOR
|
|
|
|
#endif
|
|
|
|
|
2024-03-19 22:38:33 +01:00
|
|
|
#if !defined IDC_HAND // Win2k specific definition
|
|
|
|
#define IDC_HAND MAKEINTRESOURCE(32649)
|
|
|
|
#endif
|
|
|
|
|
2024-03-19 23:35:29 +01:00
|
|
|
#if _MSC_VER <= 1200 // missing type definition in the MSVC6.0 SDK and earlier
|
2024-03-19 23:35:31 +01:00
|
|
|
#define __unaligned
|
2024-03-19 23:35:30 +01:00
|
|
|
#define SetWindowLongPtr SetWindowLong
|
|
|
|
#define GetWindowLongPtr GetWindowLong
|
2024-03-19 23:35:30 +01:00
|
|
|
#define SetClassLongPtr SetClassLong
|
|
|
|
#define GetClassLongPtr GetClassLong
|
2024-03-19 23:35:29 +01:00
|
|
|
typedef SIZE_T DWORD_PTR, *PDWORD_PTR;
|
2024-03-19 23:35:30 +01:00
|
|
|
typedef ULONG ULONG_PTR, *PULONG_PTR;
|
2024-03-19 23:35:30 +01:00
|
|
|
typedef LONG LONG_PTR, *PLONG_PTR;
|
2024-03-19 23:35:29 +01:00
|
|
|
#endif
|
2024-03-19 23:35:30 +01:00
|
|
|
|
|
|
|
#if _MSC_VER >= 1400 // valid for VS2005 and later
|
|
|
|
#if defined _M_IX86
|
|
|
|
#pragma comment(linker,"/manifestdependency:\" \
|
|
|
|
type='win32' \
|
|
|
|
name='Microsoft.Windows.Common-Controls' \
|
|
|
|
version='6.0.0.0' processorArchitecture='x86' \
|
|
|
|
publicKeyToken='6595b64144ccf1df' \
|
|
|
|
language='*'\"")
|
|
|
|
#elif defined _M_IA64
|
|
|
|
#pragma comment(linker,"/manifestdependency:\" \
|
|
|
|
type='win32' \
|
|
|
|
name='Microsoft.Windows.Common-Controls' \
|
|
|
|
version='6.0.0.0' processorArchitecture='ia64' \
|
|
|
|
publicKeyToken='6595b64144ccf1df' \
|
|
|
|
language='*'\"")
|
|
|
|
#elif defined _M_X64
|
|
|
|
#pragma comment(linker,"/manifestdependency:\" \
|
|
|
|
type='win32' \
|
|
|
|
name='Microsoft.Windows.Common-Controls' \
|
|
|
|
version='6.0.0.0' processorArchitecture='amd64' \
|
|
|
|
publicKeyToken='6595b64144ccf1df' \
|
|
|
|
language='*'\"")
|
|
|
|
#else
|
|
|
|
#pragma comment(linker,"/manifestdependency:\" \
|
|
|
|
type='win32' \
|
|
|
|
name='Microsoft.Windows.Common-Controls' \
|
|
|
|
version='6.0.0.0' processorArchitecture='*' \
|
|
|
|
publicKeyToken='6595b64144ccf1df' \
|
|
|
|
language='*'\"")
|
|
|
|
#endif
|
|
|
|
#endif
|