[RAPPS] Enable ATL assertions
[reactos.git] / base / applications / rapps / include / defines.h
1 #pragma once
2
3 #define WIN32_NO_STATUS
4 #define _INC_WINDOWS
5 #define COM_NO_WINDOWS_H
6 #define COBJMACROS
7 #define _DEBUG
8 #include <tchar.h>
9 #include <stdarg.h>
10
11 #include <windef.h>
12 #include <winbase.h>
13 #include <winreg.h>
14 #include <wingdi.h>
15 #include <winnls.h>
16 #include <winuser.h>
17 #include <wincon.h>
18 #include <richedit.h>
19 #include <shellapi.h>
20 #include <shlobj.h>
21 #include <shlwapi.h>
22 #include <stdio.h>
23 #include <strsafe.h>
24 #include <ndk/rtlfuncs.h>
25 #include <atlcoll.h>
26 #include <atlsimpcoll.h>
27 #include <atlstr.h>
28 #include <rappsmsg.h>
29
30 #include "resource.h"
31 #include "winmain.h"
32
33 #define APPLICATION_DATABASE_URL L"https://rapps.reactos.org/rappmgr.cab"
34 #define MAX_STR_LEN 256
35
36 enum AppsCategories
37 {
38 ENUM_ALL_AVAILABLE,
39 ENUM_CAT_AUDIO,
40 ENUM_CAT_VIDEO,
41 ENUM_CAT_GRAPHICS,
42 ENUM_CAT_GAMES,
43 ENUM_CAT_INTERNET,
44 ENUM_CAT_OFFICE,
45 ENUM_CAT_DEVEL,
46 ENUM_CAT_EDU,
47 ENUM_CAT_ENGINEER,
48 ENUM_CAT_FINANCE,
49 ENUM_CAT_SCIENCE,
50 ENUM_CAT_TOOLS,
51 ENUM_CAT_DRIVERS,
52 ENUM_CAT_LIBS,
53 ENUM_CAT_THEMES,
54 ENUM_CAT_OTHER,
55 ENUM_CAT_SELECTED,
56 ENUM_ALL_INSTALLED,
57 ENUM_INSTALLED_APPLICATIONS = 31,
58 ENUM_UPDATES = 32,
59 ENUM_INSTALLED_MIN = ENUM_ALL_INSTALLED,
60 ENUM_INSTALLED_MAX = ENUM_UPDATES,
61 ENUM_AVAILABLE_MIN = ENUM_ALL_AVAILABLE,
62 ENUM_AVAILABLE_MAX = ENUM_CAT_SELECTED,
63 };
64
65 inline BOOL IsAvailableEnum(INT x)
66 {
67 return (x >= ENUM_AVAILABLE_MIN && x <= ENUM_AVAILABLE_MAX);
68 }
69
70 inline BOOL IsInstalledEnum(INT x)
71 {
72 return (x >= ENUM_INSTALLED_MIN && x <= ENUM_INSTALLED_MAX);
73 }