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
15{
16 return (NtCurrentTeb()->ProcessEnvironmentBlock->NtGlobalFlag & FLG_APPLICATION_VERIFIER) != 0;
17}
18
20{
21 return (NtCurrentTeb()->ProcessEnvironmentBlock->ProcessParameters->Flags & RTL_USER_PROC_SECURE_PROCESS) != 0;
22}
#define __cdecl
Definition: accygwin.h:79
#define FLG_APPLICATION_VERIFIER
Definition: pstypes.h:64
#define NtCurrentTeb
#define RTL_USER_PROC_SECURE_PROCESS
Definition: ntrtl.h:15
bool __cdecl __acrt_app_verifier_enabled()
Definition: peb_access.cpp:14
bool __cdecl __acrt_is_secure_process()
Definition: peb_access.cpp:19