xref: /reactos/subsystems/win/basesrv/appcompat.c (revision c2c66aff)
1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS Base API Server DLL
4  * FILE:            subsystems/win/basesrv/appcompat.c
5  * PURPOSE:         Initialization
6  * PROGRAMMERS:     Timo Kreuzer (timo.kreuzer@reactos.org)
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include "basesrv.h"
12 #include "api.h"
13 
14 #define NDEBUG
15 #include <debug.h>
16 
17 /* GLOBALS ********************************************************************/
18 
19 typedef struct _BASE_APP_COMPAT_EXTRA1
20 {
21     WCHAR String1[32];
22     ULONG tdwFlags;
23     ULONG SizeOfStruct;
24     ULONG tdwMagic;
25     ULONG ttrExe;
26     ULONG dword50;
27     ULONG dword54;
28     ULONG dword58;
29     PVOID ttrLayer;
30     CHAR String2[28];
31     ULONG dword7C;
32     ULONG dword80;
33     ULONG field_84;
34     CHAR String3[256];
35 } BASE_APP_COMPAT_EXTRA1, *PBASE_APP_COMPAT_EXTRA1;
36 
37 typedef struct _BASE_APP_COMPAT_DATA
38 {
39     UNICODE_STRING FileName;
40     HANDLE ProcessHandle;
41     ULONG Flags;
42     USHORT Code;
43     USHORT Unknown_012;
44     PVOID Environment;
45     ULONG EnvironmentSize;
46     PBASE_APP_COMPAT_EXTRA1 AppCompExtra1;
47     ULONG AppCompExtra1Size;
48     PVOID AppCompExtra2;
49     ULONG AppCompExtra2Size;
50     BOOL CheckRunAppResult;
51     ULONG Flags2;
52 } BASE_APP_COMPAT_DATA, *PBASE_APP_COMPAT_DATA;
53 
54 /* PUBLIC SERVER APIS *********************************************************/
55 
CSR_API(BaseSrvCheckApplicationCompatibility)56 CSR_API(BaseSrvCheckApplicationCompatibility)
57 {
58     PBASE_APP_COMPAT_DATA AppCompatData = (PBASE_APP_COMPAT_DATA)&ApiMessage->Data;
59     DPRINT1("BASESRV: BaseSrvCheckApplicationCompatibility(%wZ)\n",
60            AppCompatData->FileName);
61 
62     AppCompatData->CheckRunAppResult = FALSE;
63 
64     return STATUS_SUCCESS;
65 }
66 
67 /* EOF */
68