1 #pragma once
2 
3 #define WIN32_NO_STATUS
4 #define _INC_WINDOWS
5 #define COM_NO_WINDOWS_H
6 #define COBJMACROS
7 #include <tchar.h>
8 #include <stdarg.h>
9 
10 #include <windef.h>
11 #include <winbase.h>
12 #include <winreg.h>
13 #include <wingdi.h>
14 #include <winnls.h>
15 #include <winuser.h>
16 #include <wincon.h>
17 #include <richedit.h>
18 #include <shellapi.h>
19 #include <shlobj.h>
20 #include <shlwapi.h>
21 #include <stdio.h>
22 #include <strsafe.h>
23 #include <ndk/rtlfuncs.h>
24 #include <atlcoll.h>
25 #include <atlsimpcoll.h>
26 #include <atlstr.h>
27 #include <rappsmsg.h>
28 
29 #include "resource.h"
30 #include "winmain.h"
31 
32 /* Name of the registry sub-key where RAPPS settings are stored, and
33  * of the local AppData sub-directory where the RAPPS files are stored. */
34 #define RAPPS_NAME                  L"RApps"
35 
36 /* Name of the RAPPS sub-directory where the offline RAPPS database is stored */
37 #define RAPPS_DATABASE_SUBDIR       L"appdb"
38 
39 /* URL and filename of the online RAPPS database */
40 #define APPLICATION_DATABASE_URL    L"https://rapps.reactos.org/rappmgr2.cab"
41 #define APPLICATION_DATABASE_NAME   L"rappmgr2.cab"
42 
43 #define MAX_STR_LEN 256
44