Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475/* * PROJECT: ReactOS Process Status Helper Library * LICENSE: MIT (https://spdx.org/licenses/MIT) * PURPOSE: PSAPI Win2k3 style entrypoint * COPYRIGHT: Copyright 2013 Pierre Schweitzer <pierre@reactos.org> */
#include <stdarg.h>
#define WIN32_NO_STATUS#include <windef.h>#include <winbase.h>#define NTOS_MODE_USER#include <ndk/psfuncs.h>#include <ndk/rtlfuncs.h>
#include <psapi.h>
#define NDEBUG#include <debug.h>
staticVOIDNTAPIPsParseCommandLine(VOID){ UNIMPLEMENTED;}
staticVOIDNTAPIPsInitializeAndStartProfile(VOID){ UNIMPLEMENTED;}
staticVOIDNTAPIPsStopAndAnalyzeProfile(VOID){ UNIMPLEMENTED;}
/* * @implemented */BOOLEANWINAPIDllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved){ switch(nReason) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hDllHandle); if (NtCurrentPeb()->ProcessParameters->Flags & RTL_USER_PROCESS_PARAMETERS_PROFILE_USER) { PsParseCommandLine(); PsInitializeAndStartProfile(); } break;
case DLL_PROCESS_DETACH: if (NtCurrentPeb()->ProcessParameters->Flags & RTL_USER_PROCESS_PARAMETERS_PROFILE_USER) { PsStopAndAnalyzeProfile(); } break; } return TRUE;}