ReactOS 0.4.16-dev-927-g467dec4
peb_access.cpp File Reference
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
Include dependency graph for peb_access.cpp:

Go to the source code of this file.

Functions

bool __cdecl __acrt_app_verifier_enabled ()
 
bool __cdecl __acrt_is_secure_process ()
 

Function Documentation

◆ __acrt_app_verifier_enabled()

bool __cdecl __acrt_app_verifier_enabled ( void  )

Definition at line 14 of file peb_access.cpp.

15{
16 return (NtCurrentTeb()->ProcessEnvironmentBlock->NtGlobalFlag & FLG_APPLICATION_VERIFIER) != 0;
17}
#define FLG_APPLICATION_VERIFIER
Definition: pstypes.h:64
#define NtCurrentTeb

Referenced by should_call_terminate_process().

◆ __acrt_is_secure_process()

bool __cdecl __acrt_is_secure_process ( void  )

Definition at line 19 of file peb_access.cpp.

20{
21 return (NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->Flags & RTL_USER_PROC_SECURE_PROCESS) != 0;
22}
#define RTL_USER_PROC_SECURE_PROCESS
Definition: ntrtl.h:15

Referenced by get_cached_win_policy(), and get_win_policy().