[SDK][SHIMENG] Ensure that module entrypoints are not called while loading the shim engine

This is done by marking everything that is already loaded but not 'processed'.
After the shim engine is done initializing, the original state is restored,
with the exception of the shim engine itself.
CORE-15846
This commit is contained in:
Mark Jansen 2019-03-11 22:51:46 +01:00
parent a1f6a6bdc3
commit 6abe0e50aa
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
2 changed files with 93 additions and 2 deletions

View file

@ -37,6 +37,7 @@ Author:
//
#define LDRP_STATIC_LINK 0x00000002
#define LDRP_IMAGE_DLL 0x00000004
#define LDRP_SHIMENG_SUPPRESSED_ENTRY 0x00000008
#define LDRP_LOAD_IN_PROGRESS 0x00001000
#define LDRP_UNLOAD_IN_PROGRESS 0x00002000
#define LDRP_ENTRY_PROCESSED 0x00004000