Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***
- *loadcfg.c
- *
- * Copyright (c) Microsoft Corporation. All rights reserved.
- *
- *Purpose:
- * Defines the default load config struct linked into images.
- *
- *******************************************************************************/
- #include <Windows.h>
- extern UINT_PTR __security_cookie; /* /GS security cookie */
- void __fastcall _guard_check_icall_nop (_In_ PVOID /*Target*/);
- #pragma warning(disable : 4152)
- extern const volatile PVOID __guard_check_icall_fptr = _guard_check_icall_nop;
- #if defined(_AMD64_)
- void _guard_dispatch_icall_nop();
- extern const volatile PVOID __guard_dispatch_icall_fptr = _guard_dispatch_icall_nop;
- #endif
- #pragma warning(default : 4152)
- #if defined(_M_IX86) || defined(_X86_)
- /*
- * The following two names are automatically created by the linker for any
- * image that has the safe exception table present.
- */
- extern PVOID __safe_se_handler_table[]; /* base of safe handler entry table */
- extern BYTE __safe_se_handler_count; /* absolute symbol whose address is
- the count of table entries */
- #endif
- extern PVOID __guard_fids_table[];
- extern ULONG __guard_fids_count;
- extern ULONG __guard_flags;
- extern PVOID __guard_iat_table[];
- extern ULONG __guard_iat_count;
- extern PVOID __guard_longjmp_table[];
- extern ULONG __guard_longjmp_count;
- extern PVOID __dynamic_value_reloc_table;
- extern PVOID __enclave_config;
- #if defined(_CHPE_X86_ARM64_)
- extern const PVOID __chpe_metadata;
- #endif
- extern
- const
- IMAGE_LOAD_CONFIG_DIRECTORY
- _load_config_used = {
- sizeof(_load_config_used),
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- (SIZE_T)&__security_cookie,
- #if defined(_M_IX86) || defined(_X86_)
- (SIZE_T)__safe_se_handler_table,
- (SIZE_T)&__safe_se_handler_count,
- #else
- 0,
- 0,
- #endif
- (SIZE_T)&__guard_check_icall_fptr,
- #if defined(_AMD64_)
- (SIZE_T)&__guard_dispatch_icall_fptr,
- #else
- 0,
- #endif
- (SIZE_T)&__guard_fids_table,
- (SIZE_T)&__guard_fids_count,
- (ULONG)(SIZE_T)&__guard_flags,
- { 0, 0, 0, 0 },
- (SIZE_T)&__guard_iat_table,
- (SIZE_T)&__guard_iat_count,
- (SIZE_T)&__guard_longjmp_table,
- (SIZE_T)&__guard_longjmp_count,
- 0,
- #if defined(_CHPE_X86_ARM64_)
- (SIZE_T)&__chpe_metadata,
- #else
- 0,
- #endif
- 0,
- 0,
- 0, // DynamicValueRelocTableOffset
- 0, // DynamicValueRelocTableSection
- 0, // Reserved2
- 0,
- 0, // HotPatchTableOffset
- 0, // Reserved3
- (SIZE_T)&__enclave_config,
- 0, // VolatileMetadataPointer
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement