ReactOS
0.4.16-dev-835-gd769f56
peb_access.cpp
Go to the documentation of this file.
1
//
2
// peb_access.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Wrapper functions to access fields in the PEB.
7
//
8
9
// Using internal headers for definitions. Only call publicly available functions.
10
#include <
nt.h
>
11
#include <
ntrtl.h
>
12
#include <
nturtl.h
>
13
14
extern
"C"
bool
__cdecl
__acrt_app_verifier_enabled
()
15
{
16
return
(
NtCurrentTeb
()->ProcessEnvironmentBlock->NtGlobalFlag &
FLG_APPLICATION_VERIFIER
) != 0;
17
}
18
19
extern
"C"
bool
__cdecl
__acrt_is_secure_process
()
20
{
21
return
(
NtCurrentTeb
()->ProcessEnvironmentBlock->ProcessParameters->Flags &
RTL_USER_PROC_SECURE_PROCESS
) != 0;
22
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
FLG_APPLICATION_VERIFIER
#define FLG_APPLICATION_VERIFIER
Definition:
pstypes.h:64
NtCurrentTeb
#define NtCurrentTeb
Definition:
iphlpapi_private.h:4
nt.h
ntrtl.h
RTL_USER_PROC_SECURE_PROCESS
#define RTL_USER_PROC_SECURE_PROCESS
Definition:
ntrtl.h:15
nturtl.h
__acrt_app_verifier_enabled
bool __cdecl __acrt_app_verifier_enabled()
Definition:
peb_access.cpp:14
__acrt_is_secure_process
bool __cdecl __acrt_is_secure_process()
Definition:
peb_access.cpp:19
sdk
lib
ucrt
internal
peb_access.cpp
Generated on Thu Mar 20 2025 06:14:44 for ReactOS by
1.9.6