ReactOS 0.4.16-dev-942-g91fadeb
main.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include <psapi.h>
#include <debug.h>
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define NTOS_MODE_USER
 
#define NDEBUG
 

Functions

static VOID NTAPI PsParseCommandLine (VOID)
 
static VOID NTAPI PsInitializeAndStartProfile (VOID)
 
static VOID NTAPI PsStopAndAnalyzeProfile (VOID)
 
BOOLEAN WINAPI DllMain (HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 19 of file main.c.

◆ NTOS_MODE_USER

#define NTOS_MODE_USER

Definition at line 13 of file main.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 10 of file main.c.

Function Documentation

◆ DllMain()

BOOLEAN WINAPI DllMain ( HINSTANCE  hDllHandle,
DWORD  nReason,
LPVOID  Reserved 
)

Definition at line 51 of file main.c.

54{
55 switch(nReason)
56 {
58 DisableThreadLibraryCalls(hDllHandle);
59 if (NtCurrentPeb()->ProcessParameters->Flags & RTL_USER_PROCESS_PARAMETERS_PROFILE_USER)
60 {
63 }
64 break;
65
67 if (NtCurrentPeb()->ProcessParameters->Flags & RTL_USER_PROCESS_PARAMETERS_PROFILE_USER)
68 {
70 }
71 break;
72 }
73 return TRUE;
74}
#define NtCurrentPeb()
Definition: FLS.c:22
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
static VOID NTAPI PsStopAndAnalyzeProfile(VOID)
Definition: main.c:41
static VOID NTAPI PsParseCommandLine(VOID)
Definition: main.c:25
static VOID NTAPI PsInitializeAndStartProfile(VOID)
Definition: main.c:33
#define RTL_USER_PROCESS_PARAMETERS_PROFILE_USER
Definition: rtltypes.h:42

◆ PsInitializeAndStartProfile()

static VOID NTAPI PsInitializeAndStartProfile ( VOID  )
static

Definition at line 33 of file main.c.

34{
36}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15

Referenced by DllMain().

◆ PsParseCommandLine()

static VOID NTAPI PsParseCommandLine ( VOID  )
static

Definition at line 25 of file main.c.

26{
28}

Referenced by DllMain().

◆ PsStopAndAnalyzeProfile()

static VOID NTAPI PsStopAndAnalyzeProfile ( VOID  )
static

Definition at line 41 of file main.c.

42{
44}

Referenced by DllMain().