ReactOS 0.4.15-dev-6656-gbbb33a6
compat_undoc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ReactOS_ShimData
 

Macros

#define REACTOS_SHIMDATA_MAGIC   0xAC0DEDAB
 
#define REACTOS_COMPATVERSION_UNINITIALIZED   0xfffffffe
 
#define REACTOS_COMPATVERSION_IGNOREMANIFEST   0xffffffff
 

Typedefs

typedef struct _ReactOS_ShimData ReactOS_ShimData
 

Functions

static DWORD RosGetProcessCompatVersion (VOID)
 

Macro Definition Documentation

◆ REACTOS_COMPATVERSION_IGNOREMANIFEST

#define REACTOS_COMPATVERSION_IGNOREMANIFEST   0xffffffff

Definition at line 17 of file compat_undoc.h.

◆ REACTOS_COMPATVERSION_UNINITIALIZED

#define REACTOS_COMPATVERSION_UNINITIALIZED   0xfffffffe

Definition at line 16 of file compat_undoc.h.

◆ REACTOS_SHIMDATA_MAGIC

#define REACTOS_SHIMDATA_MAGIC   0xAC0DEDAB

Definition at line 15 of file compat_undoc.h.

Typedef Documentation

◆ ReactOS_ShimData

Function Documentation

◆ RosGetProcessCompatVersion()

static DWORD RosGetProcessCompatVersion ( VOID  )
inlinestatic

Definition at line 22 of file compat_undoc.h.

23{
24 static DWORD g_CompatVersion = REACTOS_COMPATVERSION_UNINITIALIZED;
25 if (g_CompatVersion == REACTOS_COMPATVERSION_UNINITIALIZED)
26 {
27 ReactOS_ShimData* pShimData = (ReactOS_ShimData*)NtCurrentPeb()->pShimData;
28 if (pShimData && pShimData->dwMagic == REACTOS_SHIMDATA_MAGIC &&
29 pShimData->dwSize == sizeof(ReactOS_ShimData))
30 {
31 g_CompatVersion = pShimData->dwRosProcessCompatVersion;
32 }
33 }
34 return g_CompatVersion < REACTOS_COMPATVERSION_UNINITIALIZED ? g_CompatVersion : 0;
35}
#define NtCurrentPeb()
Definition: FLS.c:22
#define REACTOS_SHIMDATA_MAGIC
Definition: compat_undoc.h:15
#define REACTOS_COMPATVERSION_UNINITIALIZED
Definition: compat_undoc.h:16
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD dwRosProcessCompatVersion
Definition: compat_undoc.h:11

Referenced by actctx_init().